iFrame problem

D

Dylan Parry

As if the love poetry wasn't enough, Paul Watt just had to say:
<iframe frameborder="0" src="http://www.depressionlink.co.uk/forum/"
allowtransparency="yes" width="100%" height="100%"></iframe>

The 100% values refer to 100% of the parent element's width/height. Does
the parent element have a width/height? If you are trying to get the
iframe to be 100% of the body width/height, then the answer is no.
 
P

Paul Watt

Dylan Parry said:
As if the love poetry wasn't enough, Paul Watt just had to say:


The 100% values refer to 100% of the parent element's width/height. Does
the parent element have a width/height? If you are trying to get the
iframe to be 100% of the body width/height, then the answer is no.

--

How would you suggest I get the iFrame to fill the remainder of the cell its
in?

Paul
 
D

Dylan Parry

As if the love poetry wasn't enough, Paul Watt just had to say:
How would you suggest I get the iFrame to fill the remainder of the cell its
in?

Well the 100% for the width will work fine, but I can't see any reliable
way of making the 100% work for the height.
 
A

Adam Risser

If you want the IFRAME to grow to the size of the content displayed in
it, then you need to use javascript. A quick GIS for "javascript
height iframe" should give you some good examples
 
P

Paul Watt

Dylan Parry said:
As if the love poetry wasn't enough, Paul Watt just had to say:


Well the 100% for the width will work fine, but I can't see any reliable
way of making the 100% work for the height.

--

Sorted it, speicfied the height in pixels and it worked just fine!

cheers anyway!

Paul
 

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

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top