Non-flexible iframe

Hello, I am having a problem with an iframe on this page (where cars are presented): https://www.monixm.com/
The cars are added or removed, so it always changes its height.

As you can see, it has a scroll and what I would like it to do is that it presents itself nicely without the scroll and just by using the space it needs. I tried so many combinations that I researched online but nothing worked. Is this something that I would need to use Javascript for?

Yes. The content of an iframe is not something that is on your main web page, it’s in a different place. Think of like a window in real life - if stuff happens on the other side of the window, the window doesn’t change shape to make it easier for you to see what’s going on, it’s a fixed size. You are likely to need to use JS to find out what the new size of the stuff in the iframe is, then pass that size to the iframe

1 Like