The code
<div style="width: 640px; border: 1px solid black; margin-left: 100px;"> container <div style="border: 1px solid red; margin-left: -50px; background-color: orange;"> inside </div> </div>
In Firefox:
But in IE 6:
Fix: the inside div should have a fixed width and position set to relative:
<div style="width: 640px; border: 1px solid black; margin-left: 100px;"> container <div style="border: 1px solid red; margin-left: -50px; background-color: orange; width: 689px; position: relative;"> inside </div> </div>
Now in IE 6:
selector { min-height:500px; height:auto !important; height:500px; }
Not supported: The CSS selector li.class1.class2 will be interpreted as li.class2.
Just make the parent relative as well.
Ref: http://snook.ca/archives/html_and_css/position_relative_overflow_ie/
The container needs some layout:
width: 100%;