View Full Version : IFrame Question

10-21-2007, 02: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:

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:

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

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

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

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

10-22-2007, 05: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

10-22-2007, 05:38 AM
You'll have to use javascript for this
This is one is probably the one you want