Help - Search - Members - Calendar
Full Version: Align website center
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
tomkorver
I can't figure out why my website isn't centered in IE, while it is in Chrome or Firefox.
I'm using:

CSS:
#container {
width: 800px;
margin-left: auto;
margin-right: auto;
background-image: url(images/bgr.gif);
margin-top: 0px;
padding-top: 0px;
padding-right: 15px;
padding-bottom: 15px;
background-repeat: repeat-y;
background-color: #FFF;
border: 5px outset #fce387;
}

HTML:
<div id="container">
</div>

Any help/suggestions?
http://frontiersymposium.nl/
Thanks!
pandy
Because when in Quirks Mode IE doesn't understand centering with auto margins.

Activating the Right Layout Mode Using the Doctype Declaration:
http://hsivonen.iki.fi/doctype/
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.