Absolute positioning in IE6, using left: 0; and right: 0; simultaneously

Posted by Zane on Stack Overflow See other posts from Stack Overflow or by Zane
Published on 2010-04-08T22:35:16Z Indexed on 2010/04/08 22:43 UTC
Read the original article Hit count: 369

Filed under:
|
|

Here is my website: http://dagwaging.110mb.com/ View it in any good browser, then in IE6. It dies in IE6. It seems that in IE6, one can't do this:

div {
position: absolute;
left: 0px;
right: 0px;
}

or this:

div {
position: absolute;
top: 0px;
bottom: 0px;
}

Absolute positions cannot be set for left and right or top and bottom at the same time. This is terrible, because that is pretty much the basis of my site design. The HTML can be viewed on the site, and the CSS is in /style.css. I'd like to fix this without invalidating my CSS or HTML. Can this be done?

Another problem is that my content uses min-width and max-width to avoid over-stretching or compressing the content within. IE6 can't do min-width, so how can I replicate this behavior?

© Stack Overflow or respective owner

Related posts about html

Related posts about internet-explorer-6