How to set automatic height for iframes? (4 posts)

  1. ianesque
    Posted 8 years ago #

    I'm using iframes in my WP posts to grab some styled content that I don't want to be affected by the global CSS properties of the template.

    See for example:

    My problem is that I want the height of the iframe to automatically fit the height of the content it's displaying. Does anyone have an easy CSS solution, or an easy to setup javascript that will do the same? I'm not javascript savvy, so modifying someone else's code without guidelines would be rough.

    ...Or is there some better solution to this than using iframes at all? I just want the html / css content of the post to not be jumbled by the global style sheet properties.

    BIG THANKS for any help...

  2. jlcharles
    Posted 8 years ago #

    I'm having the same problem as well.

  3. allshookup
    Posted 7 years ago #

    I would like to find a fix as well...
    I have tried several javascript solutions but none of them have worked.
    Has anyone been able to get an iframe to auto resize height?

  4. allshookup
    Posted 7 years ago #


Topic Closed

This topic has been closed to new replies.

About this Topic