headergfx

I'm yodelling at Yahoo! as a Partner Operations Manager. For me the value of Software is in its extensibility and it has to be protected from patents.

Update an iframe’s height according to its content

Posted by Stephan Kristyn on February 2nd, 2012 / No Comments

In case you have an iFrame which serves content of unknown size to your main page, you can add a little script that reads out the actual size of the iframe and alters the iframe container’s size.

An additional div is implemented to be double sure to hide unwanted overlapping and to make sure the area is correctly collapsed.


Continue »

Stephan Kristyn Mondstr. 1b 81543 Munich

Licensed CC BY-SA