SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot DonTino's Avatar
    Join Date
    Nov 2001
    Location
    Germany
    Posts
    131
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    problem with iframe and IE scrollbars

    Hi all,

    I have a small problem on a current project of mine where I'm using iFrames (yes I know not the best option - but for that budget it was the easiest to do)

    The problem I have is that I display a site within the iframe and everytime when a vertical scrollbar if needed that stupid browser also shows the horizontal bar (left to right) although the site should fit in there without the horizontal bar without a problem.

    I even made the page real small in width IE is still showing that horizontal bar when it shows the vertical one.

    I got it working on a different page of mine but really don't know how. I've been trying it on this for hours now and can't figure it out.

    There's the scrolling"yes" and scroling"no" tag.
    when using the the scrolling="yes" it shows the vertical scrollbar only but also shows it when it is not needed.

    Anyone got a solution?

    thanks for the help

    Tino
    Discover the Divine Truth - NOW blogging
    tino-designs.com integrates the usability of the internet
    with the illustration and style of design

  2. #2
    SitePoint Evangelist Maujor's Avatar
    Join Date
    Mar 2005
    Location
    Rio de Janeiro - Brazil - South America
    Posts
    409
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try add the following style rule:
    Code:
    <body style="border:0;overflow:visible>
    If you are using style sheet put the rule there and not inline as I pointed above.
    Mauricio Samy Silva
    http://www.maujor.com/

  3. #3
    SitePoint Zealot DonTino's Avatar
    Join Date
    Nov 2001
    Location
    Germany
    Posts
    131
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    maujor thanks a lot this at least fixes the horizontal scrollbar problem for FF when I use the scrolling="yes" tag

    Tino
    Discover the Divine Truth - NOW blogging
    tino-designs.com integrates the usability of the internet
    with the illustration and style of design

  4. #4
    Keep Moving Forward gold trophysilver trophybronze trophy
    Shaun(OfTheDead)'s Avatar
    Join Date
    Nov 2005
    Location
    Trinidad
    Posts
    3,745
    Mentioned
    45 Post(s)
    Tagged
    0 Thread(s)
    I don't think there's anything you can do about that.

    IE always shows the vertical scrollbar... even in the main window... look
    -->

    Edit:

    ...make a test page and try it out, you'll see what I mean...


    I've come to accept this fact. I use CSS to style the scrollbars to help it not look so odd, though...

    ...Of course, if you're one of those people who obsess about W3C validation then I guess this isn't an option.
    *shrug*


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
  •