0
Answer

Extending an Iframe to fit the size of the content inside it

Ask a question
lip ton

lip ton

16y
1.7k
1
Hi,

I have an Iframe which displays a website. This website is dynamic. At the moment, if the height of the website is bigger then the height of the IFrame, vertical scroll bars will appear.

I do not want this. Is it possible to make it so that my IFrame's height is automatically extended, based on the size of the website it is displaying?

I have tried scrolling = no and the overflow = auto, but the best I can do is for it to not display the scroll bars, but to have the rest of the page cut off.