Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: iframe height
09-27-2006, 09:24 AM #1
- Join Date
- Jun 2003
- Thanked 8 Times in 8 Posts
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!
09-27-2006, 04:10 PM #2
- Join Date
- Mar 2006
- Splendora, Texas, United States of America
- Thanked 271 Times in 265 Posts
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×100 pixels, then the iframe's dimensions would be 99×45 pixels and 99×99 pixels based upon your code above.
For every complex problem, there is an answer that is clear, simple, and wrong.