Web Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old May 31st, 2007, 08:12 AM
¤| battousai |¤ ¤| battousai |¤ is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2006
Posts: 31 ¤| battousai |¤ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 56 m
Reputation Power: 2
Using margin to center

It's the first time that i deploy this technique, and wonder why I haven't discovered it sooner. It's a really nice technique, and this way I don't have to worry about different resolutions when designing the layout.

Ofcours Internet Explorer had to spoil the fun.

for the layout I use a main wrapper with margin:0 auto aplied to it.

the mainwrapper contains a banner div and a wrapper div wich contains the content, both are set to width:100%.


a starting page contains two links, on will take you to the site, displaying it with a stylesheet for ie browsers, another will take you there using a stylesheet for other browsers.

Internet Explorer messes seems to completely ignore the margin settting on the starting page and screwes it up.


The rest of the pages look normal in IE, using the margin setting correctly

Reply With Quote
  #2  
Old June 1st, 2007, 08:10 AM
¤| battousai |¤ ¤| battousai |¤ is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2006
Posts: 31 ¤| battousai |¤ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 56 m
Reputation Power: 2
problem solved. I found a workaround for ie: aplying text-align instead of margin: 0 auto to the body

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Development > Using margin to center


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway