DEV Community

Discussion on: Why are we still using iFrames?

Collapse
moopet profile image
Ben Sinclair

iframes can be responsive. The parent page can respond by giving them as much room as they need, and they in turn get access to their own media width.

You can vertically resize them with a script to post messages to the parent (though this does mean you require javascript and access to add one part of it to the iframe as content).