PDA

View Full Version : How to resize an iframe's content when iframe size is fixed size


amytdev
08-03-2006, 07:16 PM
I'm trying to fit the content of a URL to an Iframe's height and width. I will be changing the size of the Iframe depending on a variable and I want the contents to fit into the Iframe. Any ideas?

<%varurllist="http://darkcity/Opfinder/testSheetresize/sheet.jpg"; %>
<iframe onload="resize();" name=thisframe id="the_iframe" src=<%=varurllist%> height="460" width="700" align="top"scrolling="no" frameborder="1"></iframe></p>

Amytdev

RexxCrow
08-03-2006, 07:44 PM
Does overflow: scroll work with IFRAMES?

actually there is a scrolling: auto feature listed in the command attributes:

http://www.w3schools.com/tags/tag_iframe.asp

amytdev
08-03-2006, 09:54 PM
Actually, I'm trying to post the contents without using scrollbars and have them resize to fit the iframe no matter what the size of the picture is.