Iframe without scrollbar

Discussion in 'HTML & Website Design' started by dailydee, Dec 8, 2008.

  1. #1
    Hey guys,

    I want to put my vbulletin forum into an iframe because I want to keep my site consistent with the navigational menu but problem is when a page exceed a certain height I get an ugly scrollbar :/

    Is there a way to make the iframe automatically expand (100% height) relative to the currant page's height?

    Thanks.
     
    dailydee, Dec 8, 2008 IP
  2. infopage

    infopage Peon

    Messages:
    177
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Here's a code that might help:

    <iframe height="515" width="99%" src="PAGEURLTOBEFRAMED" align="center"></iframe>

    Notice the dimensional choices...perhaps you can try changing height to a percentage value?
     
    infopage, Dec 8, 2008 IP
  3. MrQuidam

    MrQuidam Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I think giving the iframe this height attribute should work: height="auto"

    Not 100% sure though :p (Not quit sure what you are asking)
     
    MrQuidam, Dec 9, 2008 IP
  4. cheapez

    cheapez Active Member

    Messages:
    1,123
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    78
    #4
    cheapez, Dec 9, 2008 IP
  5. gostats

    gostats Peon

    Messages:
    325
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    In this case, you should use a standard frame instead of an iframe. (standard frames are meant to fill the entire space) iframes are ment to be internally embedded.
     
    gostats, Dec 9, 2008 IP