Log In · Register

 
relative height
Smarmosaur
post May 20 2009, 04:41 PM
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>
 
 
Start new topic
Replies
mipadi
post May 20 2009, 05:09 PM
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.
 

Posts in this topic
Smarmosaur   relative height   May 20 2009, 04:41 PM
mipadi   When expressed as a percentage, the height attribu...   May 20 2009, 05:09 PM
Smarmosaur   crap. ok. thanks.   May 20 2009, 05:13 PM


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: