Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-21-2007, 02:11 PM   PM User | #1
IFeelYourPain
Regular Coder

 
Join Date: Sep 2007
Posts: 250
Thanks: 19
Thanked 0 Times in 0 Posts
IFeelYourPain has a little shameless behaviour in the past
IFrame Question

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:
Code:
<center>
<iframe src="comments.php" width=650 height=300 border=0 vspace=3 scrolling=no></iframe>
</center>
IFeelYourPain is offline   Reply With Quote
Old 10-21-2007, 04:45 PM   PM User | #2
CaptainB
Regular Coder

 
Join Date: Jun 2007
Posts: 805
Thanks: 123
Thanked 23 Times in 23 Posts
CaptainB is an unknown quantity at this point
More content = need more space.

However you could always style the scrollbars to make it fit with your design
CaptainB is offline   Reply With Quote
Old 10-22-2007, 04:14 AM   PM User | #3
IFeelYourPain
Regular Coder

 
Join Date: Sep 2007
Posts: 250
Thanks: 19
Thanked 0 Times in 0 Posts
IFeelYourPain has a little shameless behaviour in the past
Um I want it to automatically adjust to the space it needs. Any ideas?
IFeelYourPain is offline   Reply With Quote
Old 10-22-2007, 05:02 AM   PM User | #4
dcostalis
New Coder

 
Join Date: Oct 2007
Posts: 49
Thanks: 5
Thanked 9 Times in 9 Posts
dcostalis is an unknown quantity at this point
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
dcostalis is offline   Reply With Quote
Old 10-22-2007, 05:38 AM   PM User | #5
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
You'll have to use javascript for this
http://www.dynamicdrive.com/dynamici.../iframessi.htm
This is one is probably the one you want
http://www.dynamicdrive.com/dynamici...iframessi2.htm
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:12 AM.


Advertisement
Log in to turn off these ads.