Results 1 to 4 of 4

Thread: Auto fit I-frame

  1. #1
    Join Date
    Jul 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Auto fit I-frame

    I am trying to display a page inside my index (in an I-frame) without the need for a scrollbar. Is there a way to have the i-frame auto size the length itself so it will no require a scrollbar...if not, how else cold i achive this type of thing.

    Thanks.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You say a page, what page? If you know its dimensions, set the iframe to scrolling=no and the width and height of the page. Also check these:

    http://www.dynamicdrive.com/dynamici.../iframessi.htm

    http://www.dynamicdrive.com/dynamici...iframessi2.htm
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jul 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Well the page that would be inside the frame would be a blog, and so the length (hight) would change with each post.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You can try one of the links I mentioned in my first response for that then. There might be some problems with PHP (if that is what the blog uses) content though, then again, one or the other may work fine for you. Good Luck!
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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