Solved

Frame content slips underneath vertical scrollbar in IE6

Posted on 2007-04-06
2
764 Views
Last Modified: 2012-05-05
With IE6 in strict mode, when in a frame, the frame content extends underneath the vertical scrollbar (when there is a vertical scrollbar, otherwise it's ok).

One example is detailed at http://www.thescripts.com/forum/thread154084.html (although the problem occurs in all such situations, not only in the one described). Unfortunately I am required to keep this page in strict mode (cannot follow the valid advice at that link).

A fix for IE6 in strict mode would be great, I could then use conditional comments so that other browsers won't see it. But what can be done to keep the IE6 page (in a frame) from slipping under the vertical scrollbar?
0
Comment
Question by:campinas
2 Comments
 
LVL 15

Accepted Solution

by:
stanscott2 earned 500 total points
ID: 18869881
I haven't personally encountered this problem, but in another forum, a user suggested wrapping a DIV around the IFRAME, and then setting the properties of the DIV, like this:

<div id="iframe_container">
<iframe id="myiframe" frameborder="0" scrolling="no" width="300" height="500" src="/lorem_ipsum.html">
iframe not supported!
</iframe>
</div>

div#iframe_container {
width:318px;
height:100px;
overflow-x:hidden;
overflow-y:scroll;
}

It's worth a try.
0
 

Author Comment

by:campinas
ID: 18870407
So scrolling is disabled for the iframe - no place for the bug - but enabled for the div... interesting idea - thanks. In my case it's a frame (not an iframe), I wonder if I can do the same...
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to dynamically set the form action using jQuery.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question