Click to See Complete Forum and Search --> : How can I resize an IFrame


robot
12-02-2003, 05:48 AM
My page contains an iframe. The iframe size will change according to the outside page automatically.

Is it possible? And how can Id do it?

TheBearMay
12-02-2003, 06:38 AM
Just use a percentage when declaring the size, ie width='50%'.

lillu
12-02-2003, 07:04 AM
<html>
<head></head>
<body>
<iframe width="90%" height="85%" frameborder="0" src="page1.html" style="position: absolute; top: 15%; left: 5%" name="iframe1"></iframe>
If you resize your browser window manually, the iframe will also auto-rezize properly.
</body>
</html>

lillu
12-02-2003, 08:32 AM
<html>
<head></head>
<body>
<iframe width="90%" height="85%" frameborder="0" src="page1.html" style="position: absolute; top: 15%; left: 5%" name="iframe1"></iframe>
If you resize your browser window manually, the iframe will also auto-rezize properly.
</body>
</html>