View Full Version : iframe height

09-27-2006, 10:24 AM

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! :thumbsup:

09-27-2006, 05:10 PM
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.