1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

iframe scroll

Discussion in 'CSS' started by cosa, Jun 9, 2005.

  1. #1
    is there a way to lock the horizontal scroll in an iframe?
     
    cosa, Jun 9, 2005 IP
  2. sji2671

    sji2671 Self Made Mind

    Messages:
    1,991
    Likes Received:
    144
    Best Answers:
    0
    Trophy Points:
    170
    #2
    scrolling="no"

    You can have it so scroll bars do not appear at all if that is your intention.
     
    sji2671, Jun 9, 2005 IP
  3. Cartman

    Cartman Active Member

    Messages:
    354
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    88
    #3
    How? I want to integrate the scroll bar into my regular page instead of in the Iframe itself, as it is now on the following page:

    http://www.celebrityseats.com/concerts/dave-matthews-tickets.html

    Thanks!
     
    Cartman, Jun 9, 2005 IP
  4. sji2671

    sji2671 Self Made Mind

    Messages:
    1,991
    Likes Received:
    144
    Best Answers:
    0
    Trophy Points:
    170
    #4
    Edit your code for the iframe in your main page that pulls it in.
    <iframe scrolling="no" src="your url">
    </iframe>

    Edit: that wouldnt work for you as the above stops the scrollbar appearing the iframe page would then only partially show. You would be better using an include using asp/php.
     
    sji2671, Jun 9, 2005 IP
  5. Cartman

    Cartman Active Member

    Messages:
    354
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    88
    #5
    I had tried doing a php include, but ran into problems with that since it wasn't importing the CSS sheet, and since some of the references weren't absolute I was showing broken images. Unfortunately, an iframe was the only solution I could come up with, unless I went crazy and parsed all the information from the page I'm including and printed it out myself. (Which is WAY beyond my PHP capabilities)
     
    Cartman, Jun 9, 2005 IP
  6. cosa

    cosa Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    that will make the iframe completly without scrolls... what i wanted to know if it is possible to only say NO to the horizontal scroll.
     
    cosa, Jun 9, 2005 IP
  7. chiefshuddle

    chiefshuddle Banned

    Messages:
    338
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #7
    What exactly are you wanting to do then, you seem to be contridicting yourself.

    You want the iframe to scroll but not to have a scroll bar?
     
    chiefshuddle, Jun 10, 2005 IP
  8. cosa

    cosa Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    no no no... what i want is the VERTICAL scroll bar only... NOT the horizontal one
     
    cosa, Jun 10, 2005 IP
  9. chiefshuddle

    chiefshuddle Banned

    Messages:
    338
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Not sure but I think the only way you can control that is by the width of the content itself or the size of the IFrame.

    IE: They need to match up or the iframe needs to be larger.

    I could be wrong but I don't remember a setting for that specifically.
     
    chiefshuddle, Jun 12, 2005 IP
  10. Colleen

    Colleen Illustrious Member

    Messages:
    6,777
    Likes Received:
    725
    Best Answers:
    1
    Trophy Points:
    430
    #10
    I use to use iframes all the time, you put " overflow-x: false " in the css of the iframe page or maybe in the iframe tag itself, ie; style="overflow-x: false". It's one or the other. ;)
     
    Colleen, Jun 12, 2005 IP
  11. donatello

    donatello Peon

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I looked all over the web for a solution and putting the inline CSS in the iframe tag did not work. I was about to give up when I found the solution with CSS and HTML here:

    http://www.iframegenerator.com/no-horizontal-scrolling-iframe/

    That worked nicely for me. I was able to get access to the inner HTML thanks to a PHP screenscraper. :)
     
    donatello, Mar 19, 2010 IP
  12. francis_tan

    francis_tan Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Does iframe also works on mobile browser like ipad?
     
    francis_tan, Jul 1, 2010 IP