Give help. Get help.
trying to center my page layout in IE 7.
works fine in Safari, Firefox, Opera with the following :
margin: 0 auto;
background: #000000 url(../images/bg.jpg);
background-position: 50% 0;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
but I can’t seem to get it to center properly in IE 6/7
You need that on your parent element to get margin: 0 auto; to work in IE.
Then you need "text-align:left;" on your <body> tag to make your text align left again.
(Although, I would not use your body as your page outline, I would make a <div ID="container"> or something similar.)
You must be logged in to reply to this topic.