Dynamic resizing of HTML element to fit iframe content

Hi dear community

I have an HTML element on my page that embeds a dynamically sized element on the page via iframe. Is there any way to adjust the size of the HTML element to the contents of the iframe after it changes?
I tried applying css styles to this html element, but that didn’t work.

the element that contains the iframe looks like this. Changes its size after clicking on it


This is how I customized the html element
Снимок экрана 2023-10-13 101733

Can you please tell me if it is possible to dynamically resize an html element by adjusting it to the content of the iframe and if so, how to do it?

This topic was automatically closed after 70 days. New replies are no longer allowed.