relative height |
relative height |
![]()
Post
#1
|
|
![]() AKA RockIt Studios ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 2,286 Joined: Jun 2006 Member No: 421,809 ![]() |
i'm putting a few small iframes on my site to hold certain information. i want the width and height of the iframes to be relative. so whatever is in it is how big the frames are. i set them both to 100%, but it doesn't seem to be working...help?
link: http://rockitstudios.890m.com/v3/index.php code: CODE <div class="headlineo"><img src="/v3/index/headline1.png" /></div>
<div class="oinfo"><IFRAME src="/v3/oinfo.html" width="100%" height="100%"></IFRAME></div> <div class="headlinet"><img src="/v3/index/headline2.png" /></div> <div class="tinfo"><IFRAME src="/v3/tinfo.html" width="100%" height="100%"></IFRAME></div> |
|
|
![]() |
![]()
Post
#2
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Administrator Posts: 2,648 Joined: Apr 2008 Member No: 639,265 ![]() |
When expressed as a percentage, the height attribute is relative to the containing element (that is, the <iframe> tag's parent). There isn't a way to specify the height relative to the page that the <iframe> contains.
|
|
|
![]()
Post
#3
|
|
![]() AKA RockIt Studios ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 2,286 Joined: Jun 2006 Member No: 421,809 ![]() |
crap. ok. thanks.
|
|
|
![]() ![]() |