Asked • 03/14/19

Adjust width and height of iframe to fit with content in it?

I need a solution for **auto-adjusting** the `width` and `height` of an `iframe` to barely fit its content. The point is that the width and height can be changed after the `iframe` has been loaded. I guess I need an event action to deal with the change in dimensions of the body contained in the iframe.

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.