# How to set dynamic height values for embedded iframes

**URL:** <https://forum.wixstudio.com/t/how-to-set-dynamic-height-values-for-embedded-iframes/54471>\
**Category:** Ask the community\
**Tags:** design, code\
**Created:** [December 9, 2023, 8:16pm UTC](https://forum.wixstudio.com/t/how-to-set-dynamic-height-values-for-embedded-iframes/54471 "2023-12-09T20:16:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_Rowe](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/brian_rowe/32/85700_2.png) [@Brian\_Rowe](https://forum.wixstudio.com/u/Brian_Rowe)\
**Post date:** [December 9, 2023, 8:16pm UTC](https://forum.wixstudio.com/t/how-to-set-dynamic-height-values-for-embedded-iframes/54471/1 "2023-12-09T20:16:51Z")

</div>

Does Wix support dynamic height values for embedded iframes and if so how do you code it properly? I have a form I’d like to embed that will change in height as it has sections that expand and collapse. I also don’t want the embedded form to scroll up and down separately from the actual page it is on.

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![CODE-NINJA](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-ninja/32/110588_2.png) [@CODE-NINJA](https://forum.wixstudio.com/u/CODE-NINJA)\
**Post date:** [December 9, 2023, 9:47pm UTC](https://forum.wixstudio.com/t/how-to-set-dynamic-height-values-for-embedded-iframes/54471/2 "2023-12-09T21:47:55Z")

</div>

Not sure if you will be able to achieve your functionality by using an embeded HTML-Component.

Some BRAINSTORMING… loading…

 ![istockphoto-579417996-612x6121](https://us1.discourse-cdn.com/wix/original/3X/8/1/8173a79cf9234621940ccc53134db64b2085bb11.jpeg)

**1) Possible solution-1:**  
-Adding the iFrame and resize it as most big as possible over your page (even beyond the edges).  
-Generating some code to activate the communication between iFrame and Wix-Page.  
-Generating some code on wix-page which will get the current used resolution size.  
-Sending the size over to the html-iFrame.  
-Generating some code inside HTML-C. which will be able to analyse and adapt it’s size accordingly to the recieved resolution-sizes from Wix-Page.  
-additionaly generating some code inside HTML for Scrollbarr-deactivation  
-additionaly try to brind your wix website into FULLSCREEN (if possible).

If this really works → hmmm never tested → just an IDEA! Resizing elements directly on a Wix-Webpage is out of my knowledge not possible, maybe on Editor-X or the new Wix-Studio-Editor (& maybe in 2050 or even later, one day). 🙂

**…and exactly at this moment → i remember \<— that i have already requested for such a functionality 3-years ago on the CORVID-WISHLIST…, oh yeah, the old good CORVID-DAYS.**

**Possible-Solution-2:**  
-Not using a HTML-Component, instead using several collapsible COLUMN-STRIPS or maybe a REPEATER and generating your desired costom colapsible SECTIONS.

APIs you could use → **Wix-Window-Frontend-API** → **getBoundingRect()**…
