Title: [Plugin: iframe Shortcode] Automatic 100% height?
Last modified: August 20, 2016

---

# [Plugin: iframe Shortcode] Automatic 100% height?

 *  Resolved [3×7](https://wordpress.org/support/users/3x7/)
 * (@3x7)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-iframe-shortcode-automatic-100-height/)
 * Hi,
 * great plugin, but I still wonder is it possible to set the height to 100%, or
   to automatically detects the height of the content being displayed?
 * thanks
 * [http://wordpress.org/extend/plugins/iframe-shortcode/](http://wordpress.org/extend/plugins/iframe-shortcode/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Jackson Whelan](https://wordpress.org/support/users/madjax/)
 * (@madjax)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-iframe-shortcode-automatic-100-height/#post-2636566)
 * You can adjust the height attribute within the code you’re inserting:
 *     ```
       <iframe height="100%"...
       ```
   
 * That should set the iframe to fill the space within your layout, but does not
   take into account the height of the content inside the iframe.
 * Detecting and auto-adjusting the height is beyond the scope of this little plugin.
   But it can be done – if the iframe is coming from the same domain as the calling
   page – which it usually isn’t.
 * Here’s a jQuery solution for auto height (provided content is on the same domain)
 * [http://sonspring.com/journal/jquery-iframe-sizing](http://sonspring.com/journal/jquery-iframe-sizing)
 * Hope that helps!
 *  Thread Starter [3×7](https://wordpress.org/support/users/3x7/)
 * (@3x7)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-iframe-shortcode-automatic-100-height/#post-2636615)
 * thank you for explanation… will try with the plugin…
 * Content that I want to display is from another domain… so I guess I should forget
   about “no scroll bars” or do you have a better idea how to deal with this?
 * Thanks
 *  Plugin Author [Jackson Whelan](https://wordpress.org/support/users/madjax/)
 * (@madjax)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-iframe-shortcode-automatic-100-height/#post-2636630)
 * If you have some expectation of the height of the content, you can set the iframe
   accordingly to avoid scroll bars. If the height of the content is constantly 
   variable over a wide range then you might be better off with a non iframe solution
   like jQuery’s load() function.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: iframe Shortcode] Automatic 100% height?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/iframe-shortcode.svg)
 * [iframe Shortcode](https://wordpress.org/plugins/iframe-shortcode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/iframe-shortcode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/iframe-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/iframe-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/iframe-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/iframe-shortcode/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jackson Whelan](https://wordpress.org/support/users/madjax/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-iframe-shortcode-automatic-100-height/#post-2636630)
 * Status: resolved