Log in

View Full Version : Auto resizing an iframe to fit its contents



mangfpt
07-27-2018, 12:54 AM
I'm looking for something as the title that actually work for all the browser. I've searched all over the web and they all work more than perfect on Explorer and FireFox but not on Chrome.

Can u guys help me?

molendijk
07-28-2018, 10:00 PM
See this (http://mesdomaines.nu/eendracht/iframe_seamless_better_alternative/seamless.html).

amzoun95
03-04-2019, 10:19 PM
I can't think of a way for the Iframe to resize itself but maybe you can take a look at one of twitter's widgets. It fits the container nicely.
Maybe they use JS to check the container's width and then pass correct width and height for the IFRAME

heenamajeed
07-23-2019, 03:55 AM
You can illuminate the parent about the changed size of the iframe page by ... which the stature of the Facebook iframe is naturally resized.