Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: IFrame Question

  1. #1
    Regular Coder
    Join Date
    Sep 2007
    Posts
    264
    Thanks
    19
    Thanked 0 Times in 0 Posts

    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>

  • #2
    Regular Coder
    Join Date
    Jun 2007
    Posts
    805
    Thanks
    123
    Thanked 23 Times in 23 Posts
    More content = need more space.

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

  • #3
    Regular Coder
    Join Date
    Sep 2007
    Posts
    264
    Thanks
    19
    Thanked 0 Times in 0 Posts
    Um I want it to automatically adjust to the space it needs. Any ideas?

  • #4
    New Coder
    Join Date
    Oct 2007
    Posts
    49
    Thanks
    5
    Thanked 9 Times in 9 Posts
    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

  • #5
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •