DEMO: shows how to use JavaScript to make an iframe "responsive". This is demo code for my chapter of Smashing Book 5
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
js
.gitignore
README.md
host.html
iframe.html

README.md

responsive-iframe

This is a demo to show you how to use JavaScript to make an iframe appear "seemless". I call this the "responsive-iframe" because iFrames are typically static and so don't play well with responsive web design. This code manages the height and width of the iframe so the user is never aware that there is a 2nd document in the page.

More info: