WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. ianesque
    Member
    Posted 6 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:
    http://www.regrettablemusic.com/

    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
    Member
    Posted 6 years ago #

    I'm having the same problem as well.

  3. allshookup
    Member
    Posted 5 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?
    Please...

  4. allshookup
    Member
    Posted 5 years ago #

    anyone?

Topic Closed

This topic has been closed to new replies.

About this Topic