FIX: <DIV> Tags Are Positioned Incorrectly in IE 4.01ID: Q182688
|
Placing two <DIV> tags on a Web page with relative positioning causes the second <DIV> to be positioned to the right of the first. In Internet Explorer 4.0, the second <DIV> is positioned below the first.
Place a <BR> or <P> tag after the first <DIV> tag.
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was corrected in Microsoft Internet Explorer 5.
<HTML>
<BODY>
<DIV ID=one STYLE="position:relative;width:200"
onclick="document.all.two.style.display = '';">
Div One
</DIV>
<DIV ID=two STYLE="position:relative;width:200;display:none">
Div Two
</DIV>
</BODY>
</HTML>
<HTML>
<BODY>
<DIV ID=one STYLE="position:relative;width:200"
onclick="document.all.two.style.display = '';">
Div One
</DIV>
<BR>
<DIV ID=two STYLE="position:relative;width:200;display:none">
Div Two
</DIV>
</BODY>
</HTML>
Dynamic HTML section of the Internet Client SDK Help:
http://www.microsoft.com/msdn/sdk/inetsdk/help
Additional query words:
Keywords : kbIE401bug kbIE500fix
Version :
Platform :
Issue type : kbbug
Last Reviewed: April 8, 1999