removing scrollbars from iframes

Discussion in 'Web Design & Coding' started by Andy, May 22, 2004.

  1. Andy

    Andy Meep.

    Messages:
    409
    Location:
    UK
    i have a news ticker on my site that runs the news. its housed in an iframe, but it still has the scrollbars. id like to get rid of them. the code is this, basically:

    Code:
    <iframe id="datamain" border="0" name="I1" src="ticker.html" frameborder="0" width="139" scrolling="no" height="146"></iframe>
    what do i alter to make them go away?
     
  2. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    Add 'scrolling="no"' to the iframe properties and your set!
     
  3. Andy

    Andy Meep.

    Messages:
    409
    Location:
    UK
    thats already in the code.

    http://www.enigmawebdesign.co.uk/enigma/newenigma/

    the scrollbar is white currently - so you'll have to highlight to see the whole thing - but its still there - it makes positioning a pain. the scrollbar being white was me by the way, not the action of the 'scrolling="no"' property.
     
  4. Electronic Punk

    Electronic Punk Administrator Staff Member Political User Folding Team

    Messages:
    18,589
    Location:
    Copenhagen, Denmark
    The headline box at the top of this page is using an iframe :)
     
  5. Andy

    Andy Meep.

    Messages:
    409
    Location:
    UK
    scrolling="no" frameborder="0" marginwidth="0" marginheight="0"

    adding those extra tags, from above, fixed it.

    thanks ep.
     
  6. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    Sorry hybrid :(
     
  7. Andy

    Andy Meep.

    Messages:
    409
    Location:
    UK
    no worries g, just glad its sorted.