SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Iframe Issue

  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2010
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Iframe Issue

    Hi,

    How can i disable horizontal scrollbar for iframe.

    I need vertical scrollbar. i am trying with overflow-x: hidden. but not getting.

    Any one know this.

    Thank you
    Sidd

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,210
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    Quote Originally Posted by sidd View Post
    How can i disable horizontal scrollbar for iframe.
    Maybe you could try overflow: hidden; but that might cut off some of the content. Or maybe set a width on it. A link would make it easier to say.

  3. #3
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,380
    Mentioned
    180 Post(s)
    Tagged
    6 Thread(s)
    Add scrolling="auto to the iframe tag and it should only add the horizontal scrollbar if needed in most browsers apart from IE6.
    Code:
    <iframe frameborder="0"  scrolling="auto"  src="iframesrc.htm" width="300" ></iframe>


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
  •