View Full Version : Iframe problem with scaling
Beaver
08-03-2001, 11:07 AM
I want to use Iframe for my referrers but can't make it auto resize.
This is the code I have used.
<iframe src="referrer.html" width="100%" height="100" align="center"
frameborder="0" marginwidth="0" marginheight="0" scrolling="no">
Your browser does not support the IFRAME tag.
</iframe>
Width can be set to 100% but if height is set to 100% then the Iframe disappears.
how do I set 100% height for an Iframe?
ausboy
08-03-2001, 11:27 AM
If you cut and paste that, set height="100%" and try again
Beaver
08-03-2001, 11:41 AM
That's the strange thing!!!
if you use % for the height then the Iframe just disappears.
ausboy
08-03-2001, 11:43 AM
I cut and paste your code, replaced referrer.html with another file and it worked fine for me.
Beaver
08-03-2001, 11:48 AM
Did you change height="100" to height="100%" when you tried it because as soon as I use the % function in the height then the whole Iframe just disappears.
ausboy
08-03-2001, 11:51 AM
yep, when I left it as height=100 gave a frame full width and 100 pixels high
Beaver
08-03-2001, 11:58 AM
Yes that works for me but what happens if you set height to 100% instead of just 100
ausboy
08-03-2001, 12:01 PM
http://www.ausnudes.com/crap.html
if you can see that, do a view source and have a look
Beaver
08-03-2001, 12:27 PM
I just don't get it.
It works ok. for you I must have some other code on the page that's stopping it from working.
Thanks for the help I will have to find out what's stopping it working.
ausboy
08-03-2001, 12:31 PM
More than likely beaver, you've missed some piffling little thing that's gonna frustrate you for days..... I'm bored, email me ausboy@ausnudes.com with your page and I'll look if you like.
Beaver
08-03-2001, 12:50 PM
Just sent it, thanks for having a look.
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.