Forum Moderators: open

Message Too Old, No Replies

resizing iframes

         

pianodevil

7:01 am on May 21, 2005 (gmt 0)

10+ Year Member



i have an iframe INSIDE a table

the width of the iframe will stay constant, but i would liek the height of the iframe to vary depending on the size of the page inside the iframe.

for example, the width of the iframe was to stay constant at "720".
If the page in the iframe only had 2 lines of writing, the width would stay constant at "720", and the height wouldnt be very large, as there are only 2 lines of text.
If the page in the iframe had pages and pages of writing, the width would once again stay constant at "720", but the height will tbe a large number because there is a lot of writing.

i would like the height of the iframe to wrap the page that is in it, so that there will be no need for scrolling

thanks in advance :D

Matt Probert

12:25 pm on May 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Iframes don't have dynamic sizing. The height is hard coded.

Matt

tedster

5:39 pm on May 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That's true for html - but javascript can be used. See this thread:

[webmasterworld.com...]

pianodevil

8:24 am on May 22, 2005 (gmt 0)

10+ Year Member



thank you tedster, thanks very much :D