Page 1 of 1

how to make iframe resizeable

Posted: Thu Nov 08, 2018 9:02 am
by michael@ojabiler.dk
Hi experts,

We use iframes to show a list of cars.
We don't know how many cars in each categori so now i have set the size of the iframe to 1267, 13011
Is it possible to make the iframes resizeable in web builder if yes how do i do?

https://leasebil.nu/privatleasing/

Best regards Michael

Re: how to make iframe resizeable

Posted: Thu Nov 08, 2018 10:13 am
by BaconFries
If you are meaning that you wish the height to 100% of the iframe to automatically resize with the content without scrollbars then this is not possible. You can make the iframe responsive by using breakpoints and placing in a layout grid. If the content is from a external sources then that to must also be responsive.
The following may be useful for setting the height but may not be cross browser compatible.
https://stackoverflow.com/questions/997 ... hout-using

Re: how to make iframe resizeable

Posted: Thu Nov 08, 2018 11:47 am
by michael@ojabiler.dk
Thank you baconfries for your reply.

I am looking for the possibility to make the iframe height resizeable and only fit the number of cars. Now the height is fixed.

With this selection there are many items and they almost fill the iframe height
https://leasebil.nu/privatleasing/vw/

butt with his selection the height of the iframe is to big
https://leasebil.nu/privatleasing/toyota/

Is that possible in webbuilder)

Best regards Michael

Re: how to make iframe resizeable

Posted: Fri Nov 09, 2018 8:25 am
by BaconFries
Have your tried resizing the iframe? on viewing the source it is still using the default size. I also noticed that the iframes are on layers so they may take the child size of the layers. As previously mentioned there is no standard way to make the iframe automatically resize with what the content is due to compatibility across all browsers and requires custom coding please see the url provided