CSS center in IE6, 7, and 8

Posted by John on Stack Overflow See other posts from Stack Overflow or by John
Published on 2010-06-01T14:59:17Z Indexed on 2010/06/01 15:03 UTC
Read the original article Hit count: 229

Filed under:
|

This code works for IE7 and 8 but not for 6. How can I get it to work for 6. Or is there a better way to do it?

#contentLoading {
width:90px;
height: 90px;
position: fixed;
top: 50%;
left: 50%;
background:url(_img/ajax-loader4.gif) no-repeat center #fff;
text-align:center;
padding:10px;
font:normal 16px Tahoma, Geneva, sans-serif;
border:2px solid #666;
margin-left: -50px;
margin-top: -50px;
z-index:2;
overflow: auto;
}

© Stack Overflow or respective owner

Related posts about css

Related posts about css-positioning