SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Zealot
    Join Date
    Nov 2004
    Location
    Barcelona
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do you remove the horizontal scrollbar for an iframe in mozilla?

    I have managed to remove it in IE by using this css:

    body {
    overflow-x: hidden;
    }

    Though this does not work in Mozilla. Anyone?

  2. #2
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    Well: scrolling="no" is the answer other than that as far I as I know there isn't a specific none proprietary method for only the x-axis.

  3. #3
    SitePoint Zealot
    Join Date
    Nov 2004
    Location
    Barcelona
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    But I need the vertical scrollbar :0/

  4. #4
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by mntoner
    I have managed to remove it in IE by using this css:

    body {
    overflow-x: hidden;
    }

    Though this does not work in Mozilla. Anyone?
    That will work in the next release of Mozilla

  5. #5
    CTO htmlguy's Avatar
    Join Date
    Feb 2005
    Location
    North Carolina
    Posts
    420
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How about this

    I don't know if this will work but
    HTML Code:
    <iframe src="source" width="800"></iframe>
    Hope this helps
    HTMLGuy

  6. #6
    SitePoint Zealot
    Join Date
    Nov 2004
    Location
    Barcelona
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    I've found the answer

    HTML > BODY {
    overflow: -moz-scrollbars-vertical;
    }


  7. #7
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why don't you just modify the file you are loading into the iframe so that it's not wider than the iframe?
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.

  8. #8
    SitePoint Zealot
    Join Date
    Nov 2004
    Location
    Barcelona
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The content of the iframe is fixed in terms of width. The problem was that if the user makes the browser window smaller than that content then a horizontal scrollbar was appearing. We wanted the content to disappear off the right hand side of the screen.


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
  •