CSS Centering
CSS Centering
- Started
- Last post
- 2 Responses
- gelund
I’m using CSS (below) to position a layer (div) in the center of the browser window. This method works in IE6 (PC), NS6.2 (PC), but fails in IE 5 (MAC). Any suggestions, workarounds other than using a table or javascript? ...
URL: http://www.oz.net/~gelund/versio…
CSS:
position:absolute;
left:50%;
top:50%;
width:568px;
height:521px;
margin-top:-260px;
margin-left:-284px;
- kpl0
take out the absolute, the 50%'s, the margin props, and just use margin:auto.
works fine in ie 5.2 mac.
- monNom0
50% is a relative position, not an absolute... absolute would be 300px etc.
that might be your problem.