Microsoft KB Archive/317889

= BUG: Page with Absolute Positioned IFRAME That Contains Frameset Displays Unnecessary Vertical Scroll Bar =

Article ID: 317889

Article Last Modified on 5/11/2006

-

APPLIES TO


 * Microsoft Internet Explorer (Programming) 5.5 SP2
 * Microsoft Internet Explorer (Programming) 6.0

-



This article was previously published under Q317889



SYMPTOMS
When a Hypertext Markup Language (HTML) page displays an absolute positioned IFRAME that contains a frameset, the HTML page displays vertical scroll bars that are unnecessary.



RESOLUTION
To work around this problem, follow these steps:   Remove the absolute positioning attribute, which appears in the code as follows: Position:absolute   Put the IFRAME inside a tag and attach the absolute positioning style attribute to the tag as follows:  



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce the Behavior
 Open Notepad.</li>  Create a new HTML file named Main.htm, and then add the following code to this file: <HTML> <BODY bgcolor=lightgreen> <IFRAME width=&quot;50%&quot; height=&quot;50%&quot; SRC=&quot;iframe.htm&quot; style=&quot;POSITION: absolute;&quot;></IFRAME> </BODY> </HTML> </li> Save Main.htm.</li>  In Notepad, create a new HTML file named Iframe.htm, and then add the following code to this file: <HTML> <frame src=&quot;about:blank.htm&quot;> </HTML> </li> Save Iframe.htm.</li> Open Internet Explorer, and then browse to the Main.htm page. Notice that Internet Explorer displays a vertical scroll bar for the page.</li></ol>

<div class="references_section">