Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

This article was previously published under Q317889

↑ Back to the top


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.

↑ Back to the top


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> 
    					

↑ Back to the top


Status

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

↑ Back to the top


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.

↑ Back to the top


References

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

↑ Back to the top


Keywords: KB317889, kbpending, kbbug

↑ Back to the top

Article Info
Article ID : 317889
Revision : 3
Created on : 5/11/2006
Published on : 5/11/2006
Exists online : False
Views : 489