Welcome To Snipplr
Everyone's Recent JavaScript Snippets Tagged resize
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
« Prev 1 Next »
JavaScript code to facilitate dynamic re-sizing of an iframe at the same time as the browser window is re-sized, as well as making sure that the frame scales proportionally to its width and height.
1
969
posted 11 years ago by leodruker
Bind onload function to the iFrame and set the size of the iFrame to the iFrames loaded content.
In the example jQuery is used.
5
929
posted 11 years ago by Neven
Funció que agafa les mides de la pantalla i redimensiona proporcionalment una imatge per a que s'adapti a ella.
0
851
posted 13 years ago by hectorlorenzo
Given an iframe element and a header element, make the iframe just high enough to fit in the browser window. On window resize, readjust. Keep a minimum height for the iframe.
0
973
posted 13 years ago by kendsnyder
Resize iframe height. This means if the content of your iframe is longer than the iframe height, and the iframe doesn't have a scrollbar, you can resize the height of the iframe so the content is viewed.
0
764
posted 13 years ago by kodomonster
https://www.chrisjmendez.com/2008/10/18/jquery-detecting-a-browser-resize/
8
1381
posted 16 years ago by chrisaiv
Post a stripped down version of the page if you can. One that shows exactly how the iframe fits into the structure of the page.
The solution I settled on works like this:
The parent page has a javascript function like this:
function insertIt()...
0
1070
posted 16 years ago by jamesming
« Prev 1 Next »