Advanced Search

Results 1 to 3 of 3

Thread: iframe ie unnecessary horizontal scrollbar

  1. #1
    Join Date
    May 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default iframe ie unnecessary horizontal scrollbar

    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.

    Code:
    <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

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    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?

  3. #3
    Join Date
    Dec 2004
    Posts
    177
    Thanks
    0
    Thanked 18 Times in 17 Posts

    Default

    Soooo...you know why there's a scrollbar? Because you told it to have one:

    Code:
    <iframe id="ifrm" name="ifrm" src="resthumbs.html" scrolling="yes" frameborder="0" width="600" height="94">
    Try changing [scrolling="yes"] to [scrolling="auto"].

    -M.
    Verzeihung!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •