Log in

View Full Version : iframe ie unnecessary horizontal scrollbar



neridaj
06-03-2008, 06:46 AM
Hello,

I know this has been posted and replied to countless times, but none of the remedies are working for me. I've tried the partial doctype <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">, scrolling="yes", overflow-x: hidden, overflow-y: scroll, body { display: inline }, and still can't get rid of the horizontal scrollbar in IE 6. I've been messing with this for about two days so if you have any ideas let me know, please.



<div id="thumbs">
<iframe id="ifrm" name="ifrm" src="resthumbs.html" scrolling="yes" frameborder="0" width="600" height="94">
[Content for browsers that don't support iframes goes here.
Suggestion: include link to file specified in iframe src attribute.]
</iframe>
</div>


Thanks,

Jason

Medyman
06-03-2008, 01:39 PM
Without having a link to your page, it's hard to guess. But it seems to me that the issue is probably with the page within the iframe rather than the iframe itself. Are there elements in the included page that are set to be more than 600px wide?

Minos
06-09-2008, 12:42 PM
Soooo...you know why there's a scrollbar? Because you told it to have one:


<iframe id="ifrm" name="ifrm" src="resthumbs.html" scrolling="yes" frameborder="0" width="600" height="94">

Try changing [scrolling="yes"] to [scrolling="auto"].

-M.