Web Analytics Made Easy -
StatCounter iframe height - CodingForum

Announcement

Collapse
No announcement yet.

iframe height

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • iframe height

    Howdy...

    I have an iframe set up as such:

    <iframe name="tourney" src="tourneyonline.php" width="99%" height="45%" frameborder="0"></iframe>

    This works perfectly in firefox.. and not in IE.. in IE it doesn't do % of browser.. instead I end up with an extremely large iframe.

    I attempted to do it in CSS with a style="width:99%;height:99%;" but not only did this not work in IE, but it made my iframe in firefox extremely small..

    Any help appreciated!

  • #2
    Where's the rest of your code? You know that percentages are taken as a percentage of the dimensions of the iframe's parent element and not the browser's viewport, right? If you have a parent element with dimensions of 100&#215;100 pixels, then the iframe's dimensions would be 99&#215;45 pixels and 99&#215;99 pixels based upon your code above.

    Comment

    Working...
    X