BUG: Page with Absolute Positioned IFRAME That Contains Frameset Displays Unnecessary Vertical Scroll Bar (317889)



The information in this article 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:
  1. Remove the absolute positioning attribute, which appears in the code as follows:
    Position:absolute
    					
  2. Put the IFRAME inside a <div> tag and attach the absolute positioning style attribute to the <div> tag as follows:
    <div style="POSITION: absolute;"><IFRAME width="50%" height="50%"  SRC="iframe.htm"></IFRAME></div> 
    					

STATUS

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

MORE INFORMATION

Steps to Reproduce the Behavior

  1. Open Notepad.
  2. Create a new HTML file named Main.htm, and then add the following code to this file:
    <HTML>
    <BODY bgcolor=lightgreen>
    <IFRAME width="50%" height="50%"  SRC="iframe.htm" style="POSITION: absolute;"></IFRAME>
    </BODY>
    </HTML>
    					
  3. Save Main.htm.
  4. In Notepad, create a new HTML file named Iframe.htm, and then add the following code to this file:
    <HTML>
    <frameset>
    <frame src="about:blank.htm">
    </frameset>
    </HTML>
    					
  5. Save Iframe.htm.
  6. Open Internet Explorer, and then browse to the Main.htm page. Notice that Internet Explorer displays a vertical scroll bar for the page.

REFERENCES

For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:

Modification Type:MajorLast Reviewed:5/11/2006
Keywords:kbbug kbpending KB317889