Skip to main content

Hello,

I created a page with an iframe to include a Search bar and I’m looking for a workaround to reduce the space between my iframe and my next section. Currently, If I reduce the space it will cut my iframe content. Is there a way to make the iframe expand over the following content ? 

My LP : https://lp.hotelissima.fr/hotelissima-tahiti/

Thanks a lot !

 

Hey @Virginie! I took a look at your page and I do see your dilemma. The problem is it’s not possible to have iframe content overflow onto the main parent frame. This can cause a security risk which is explained here: 

https://stackoverflow.com/questions/176572/is-there-a-way-to-have-content-from-an-iframe-overflow-onto-the-parent-frame

 

Your drop-down list is a part of the content within the iframe which is why the iframe needs to be so large, it needs to be big enough to fit the contents of the menu. When the iframe isn’t large enough the content will be cropped when the menu is opened like you mentioned above. 

I hope that helps explain things a little further @Virginie and I hope that you are able to find a compromise that works for your page! 👋 


Reply