Centering DIVs with CSS in IE

This will align your divs in the center for Internet Explorer if the old standard margin-left:auto etc. doesn’t do the do.

body
{
text-align:center;
margin:0px;
}
#center_box
{
padding-top:200px;
width:700px;
margin:0 auto;
text-align:left;
}
Tech Reference:

Leave a Reply

Your email address will not be published. Required fields are marked *

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑