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.

