...

View Full Version : IFrame Question



IFeelYourPain
10-21-2007, 03:11 PM
I know many people hate Iframes as they cause much trouble, but I have nothing to worry about as I am simply using it to sort out another scripting issue. Ok as you can tell by my guestbook:
http://www.silentkillops.com/guestbook.html

Looks fine right? Wrong When something is posted it drops down further. I don't want it to do that. I have it code to go to the next page. Problem is the iframe cuts it off. If I put scroll bars on it, it looks like crap. Heres the current code:

<center>
<iframe src="comments.php" width=650 height=300 border=0 vspace=3 scrolling=no></iframe>
</center>

CaptainB
10-21-2007, 05:45 PM
More content = need more space.

However you could always style the scrollbars to make it fit with your design :)

IFeelYourPain
10-22-2007, 05:14 AM
Um I want it to automatically adjust to the space it needs. Any ideas?

dcostalis
10-22-2007, 06:02 AM
read up on the "height" and "min-height" properties. I know that you'll need a conditional for IE6 (hack), but switching that height to a min-height will do what you want in most modern browsers

_Aerospace_Eng_
10-22-2007, 06:38 AM
You'll have to use javascript for this
http://www.dynamicdrive.com/dynamicindex17/iframessi.htm
This is one is probably the one you want
http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum