# Dynamic/Auto height on Iframe? 

**URL:** <https://forum.wixstudio.com/t/dynamic-auto-height-on-iframe/17488>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [July 5, 2019, 7:20am UTC](https://forum.wixstudio.com/t/dynamic-auto-height-on-iframe/17488 "2019-07-05T07:20:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dspelman](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@dspelman](https://forum.wixstudio.com/u/dspelman)\
**Post date:** [July 5, 2019, 7:20am UTC](https://forum.wixstudio.com/t/dynamic-auto-height-on-iframe/17488/1 "2019-07-05T07:20:37Z")

</div>

Hi,  
I am looking to add some code that will allow my Iframe to be automatically resized to the height of the Iframe content?

Dave

---

<div class="post-metadata">

**Author:** ![givemeawhisky](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/givemeawhisky/32/5383_2.png) [@givemeawhisky](https://forum.wixstudio.com/u/givemeawhisky)\
**Post date:** [July 5, 2019, 9:36pm UTC](https://forum.wixstudio.com/t/dynamic-auto-height-on-iframe/17488/2 "2019-07-05T21:36:54Z")

</div>

Have a look at the reference page for HTML Components itself.  
[https://www.wix.com/corvid/reference/$w.HtmlComponent.html](https://www.wix.com/corvid/reference/$w.HtmlComponent.html)

Functions within this lets you do the following.

- Use the [scrolling](https://www.wix.com/code/reference/$w.HtmlComponent.html#scrolling) property to set whether your HTML Component displays scrollbars.

- Use the [allowFullScreen()](https://www.wix.com/code/reference/$w.HtmlComponent.html#allowFullScreen) function to let site visitors open the HTML component in full screen mode.

Also, have a look into using Wix Open Modal instead.  
[https://www.wix.com/corvid/reference/wix-window.html#openModal](https://www.wix.com/corvid/reference/wix-window.html#openModal)

Also, check out these previous form posts about it too.  
[https://www.wix.com/corvid/forum/community-discussion/html-iframe-with-dynamic-height](https://www.wix.com/corvid/forum/community-discussion/html-iframe-with-dynamic-height)  
[https://www.wix.com/corvid/forum/community-discussion/making-content-inside-an-iframe-mobile-friendly](https://www.wix.com/corvid/forum/community-discussion/making-content-inside-an-iframe-mobile-friendly)  
[https://www.wix.com/corvid/forum/community-feature-request/modify-the-url-of-an-embedded-iframe](https://www.wix.com/corvid/forum/community-feature-request/modify-the-url-of-an-embedded-iframe)  
[https://www.wix.com/corvid/forum/corvid-tips-and-updates/example-fullscreen-with-htmlcomponent](https://www.wix.com/corvid/forum/corvid-tips-and-updates/example-fullscreen-with-htmlcomponent)
