PDA

View Full Version : CSS IE width problem


thox
05-27-2003, 09:46 PM
#left {
position: relative;
margin: 300px 0 0 27px;
width: 180px;
padding-top: 200px;
}

This is exactly what I want... it works fine... and then fails miserably in IE (margin is completely ignored).

I found that removing the width fixes the margin problem but this doesn't help because I need the box to be of 180 pixels wide.

Am I doing something wrong or does IE not understand? If it's the latter, then are there any simple solutions other than using Mozilla? ;)

Catman
05-27-2003, 10:05 PM
Which version of IE? I saw no problems using IE 6 (WinXP).

thox
05-27-2003, 10:30 PM
By moving an absolutely positioned element from above the div to below it, the code now works fine.

Thanks for trying :)