Hello,
I am having a rather frustrating problem. It seems that absolute positioning in IE7 is getting messed up if the element is inside a div container with overflow:auto.
For example look at the following:
<center>
<div id="centerdiv" style="overflow:auto;width:50%;border: 1px solid #000000;">
<div id="insidediv" style="position:absolute;background:green;left:0;top:0;">Container has overflow:auto</div>
</div>
<center>
<div id="centerdiv" style="width:50%;border: 1px solid #000000;">
<div id="insidediv" style="position:absolute;background:green;left:0;top:0;">Container does not have overflow:auto</div>
</div>
</center>
Any ideas?
I am having a rather frustrating problem. It seems that absolute positioning in IE7 is getting messed up if the element is inside a div container with overflow:auto.
For example look at the following:
<center>
<div id="centerdiv" style="overflow:auto;width:50%;border: 1px solid #000000;">
<div id="insidediv" style="position:absolute;background:green;left:0;top:0;">Container has overflow:auto</div>
</div>
<center>
<div id="centerdiv" style="width:50%;border: 1px solid #000000;">
<div id="insidediv" style="position:absolute;background:green;left:0;top:0;">Container does not have overflow:auto</div>
</div>
</center>
Any ideas?