Solved

Frame content slips underneath vertical scrollbar in IE6

Posted on 2007-04-06
2
761 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
The viewer will learn how to count occurrences of each item in an array.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

809 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