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/
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/.Many thanks, Andrew
This kind of signpost is very useful and can make all the difference!
For sure :)