automatic iframe height

Placeholder

I’ve been forced to use an iframe in an app I’m developing, for long and boring reasons.

One of the perennial problems that iframes presented was that their height needs to be specified upfront, and if the content within turned out to be too long then too bad; a nasty scroll bar would appear in the middle of the screen.

I spent hours googling for javascript hacks to dynamically resize the iframe, but in the end Tim Gummer pointed me to the good stuff. I was up and running in 15 minutes.

Dynamic height

Css control of iframed content

Leave a Reply

Your email address will not be published.

top