Log in

View Full Version : Resolved Problem centering layout in IE6



monique
10-29-2008, 10:07 AM
I have looked into the other threads to find a solution for my problem, because I am sure I am not the only one to meet this problem, but couldn't find a proper solution.

I am creating a new website, with a fixed 900px width layout, and want to center the layout on the screen. I have checked it in the main browsers on my pc (FF3.0.3, IE7, OP9.10 & NS8.1.2) and all looks fine, but a friend told me that in IE6 the layout is on the left side of the screen.

Please see: http://www.arti-sign.nl/chi-ku-cha/serie4index.htm.

Just for developping purposes I have put the styles straight into the file, so it's all in the source.

Does someone know how I can solve this issue for IE6 (still used by many people...)?

Thanks and have a nice day!
Monique

monicasaha
10-29-2008, 10:33 AM
try this code
body {
background:#ffb300;
margin:0;
padding:0;
text-align:center;
}
it may solve ur problem

monique
10-29-2008, 12:06 PM
Thanks Monicasaha!

How simple can life be :D

Because all the text consequently became centered, I also had to add
text-align:left; in the page container. I ran a test on http://browsershots.org/ and it works fine now - although I am still not 100% happy with some other "variations" in IE6 compaired to the other browsers... :rolleyes:

Monique

monicasaha
10-30-2008, 06:02 AM
yah.. i agree IE 6 sometimes does not make any sense but still as long as it there we need to keep that in mind..and work as per as it wants..