Thread: iframe height
View Single Post
  #1 (permalink)  
Old 05-27-2004, 10:57 AM
eric1328 eric1328 is offline
WebProWorld New Member
 
Join Date: Feb 2004
Location: Dayton, Ohio
Posts: 5
eric1328 RepRank 0
Default iframe height

Hey, I thought I could define the height of a iframe with %, but It doesn't work. I would like the iframe height to adjust to the page size in it. This doesn't work for me.

Like if one page displayed through the iframe is one paragraph long and another is 3 pages long it puts scroll bars on becuase the height is like only 200px. If I could put 100% then the iframe would automatically adjusts its height depending on the page displayed through it

Here is my code:

<iframe
name = "frame"
height ="100%"
frameborder="0"
width ="100%"
src ="URL">
</iframe>

Any help would be appreciated! Thanks
Reply With Quote