Home>Support>Iframe auto height to suite content

Iframe auto height to suite content

I have an Iframe that is to display many pages that are of varying heights.
I don’t want scrollbars as they look untidy.
I have given a height of 3000, but this is too much for some pages and again it looks untidy.
Is there any coding for ‘auto height’ that will render the height on the content?

This is the code I have used:

URL: http://www.bellewaarde1915.org.uk/blog/remember-the-fallen/

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 22 days ago Andrew Misplon
    Hi, I Work Here

    Hi Martin

    We’re moving over into custom development territory here but we’ll do our best to advise. Here is a page discussing the challenge:

    http://stackoverflow.com/questions/9975810/make-iframe-automatically-adjust-height-according-to-the-contents-without-using

    I’m not sure it’s possible if you’re loading contents from outside your domain but you could try reading through the feedback to that comment.

    Wherever they advise adding a script your site, that can be done using: https://wordpress.org/plugins/header-and-footer-scripts/.

  2. 9 years, 22 days ago Martin Clift

    Many thanks, Andrew
    This kind of signpost is very useful and can make all the difference!

  3. 9 years, 22 days ago Andrew Misplon
    Hi, I Work Here

    For sure :)

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More