/ Published in: jQuery
Still problematic...
1. The source of the iframe content must reside on the same domain
2. if the content inside the iframe changes height, this won't adapt
3. I left Google Analytics code off the demo above, as when I added it in it seems to interfere and not resize the iframe, despite seemingly generating no errors.
1. The source of the iframe content must reside on the same domain
2. if the content inside the iframe changes height, this won't adapt
3. I left Google Analytics code off the demo above, as when I added it in it seems to interfere and not resize the iframe, despite seemingly generating no errors.
URL: http://css-tricks.com/snippets/jquery/fit-iframe-to-content/