Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about using iFrame

Status
Not open for further replies.

Chelsea7

Programmer
Aug 25, 2008
69
US
Hello,

I have a question about using iframe. Here is the code I'm using which works fine.

<iframe src="indexpage.html" width="630" height="800" frameborder="0" ></iframe>

Is there a way that I can use iframe without a fixed height? Users use this section to update a portion of the webpage. However, the contents sometimes exceeds the height number. They do not want to use the scroll bar either. It makes the webpage look ugly. So basically can the height automatically adjust based on the content added? Thsnks
 
So basically can the height automatically adjust based on the content added?
Essentially, no.

There are JavaScript solutions, but html, itself, can not determine the size of the contents of the iframe.



Greg
People demand freedom of speech as a compensation for the freedom of thought which they seldom use. Kierkegaard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top