Setting height = 100% for iframes

L

laredotornado

Hi,

I'm wondering if there's a Javascript solution to this. I'm trying to
get my iframe to occupy 100% of its parent block element. But the
height=100% attribute in CSS isn't doing the trick. Here's my
HTML ....


<td width="177" height="100%" valign="top" class="content-
rule"><iframe id="fileTreeIframe" style="border:0px none #ffffff;"
src="file_tree.php" border="0" width="100%" scroll="auto"></iframe></
td>


and the CSS ...


iframe { display:block; height:100%; width:100%; border:none; }


It doesn't look good right now -- http://screencast.com/t/mIzGnUikC.
Is there a Javascript way to make my iframe occupy 100% of its parent
element?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top