Jump to content

Autosizing height of iframe to its content


abartsch

Recommended Posts

I'm trying to set the height of my iframe according to its content but it didn't work so far. I was googling around and found some hints regarding div height to set to 100% but it could also not help. The content of the iframe is automatically filled by an PHP script which calls an XML translation. The generated HTML contains again a number of divs which are formatted via CSS. Formatting works fine but the height is limited to a default minimum size. Here comes global structure of my HTML page:

<body><div id="container">  <div id="header">  </div>  <div id="logo">  </div>  <div id="topNavi">   <div id="topNaviLeft">   </div>   <div id="topNaviRight">   </div>  </div>  <div id="center">   <div id="centerLeft">	<div id="centerLeftNavi">	</div>   </div>   <div id="centerRight">	<iframe name="iframeContent" width="856"></iframe>   </div>  </div>  <div id="footer">  </div></div></body>

I would appreciate any assistance!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...