+ Post New Thread
Results 1 to 4 of 4
Web Development Thread, re-size iframes to hold content without scrollbars in Coding and Web Development; does anyone have any code, or know of where I can find some, I can insert into a page which ...
  1. #1

    beeswax's Avatar
    Join Date
    Jul 2005
    Location
    England
    Posts
    2,285
    Thank Post
    285
    Thanked 225 Times in 153 Posts
    Rep Power
    131

    re-size iframes to hold content without scrollbars

    does anyone have any code, or know of where I can find some, I can insert into a page which will allow an iframe to resize its height to fit its content? I've spent a fruitless couple of hours searching but haven't found anything that does what it says on the tin yet.

    beeswax

  2. #2

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,413
    Thank Post
    642
    Thanked 964 Times in 664 Posts
    Blog Entries
    2
    Rep Power
    327

    Re: re-size iframes to hold content without scrollbars

    I'm pretty sure you have to set iframe widths and heights manually as it is essentially loading a separate frame (new browser window, in essence) of whatever content you tell it. If you really need what you're after, you should be able to achieve it with a DIV layer and some XMLHttpRequest to fetch the content.

  3. #3

    beeswax's Avatar
    Join Date
    Jul 2005
    Location
    England
    Posts
    2,285
    Thank Post
    285
    Thanked 225 Times in 153 Posts
    Rep Power
    131

    Re: re-size iframes to hold content without scrollbars

    I've googled it and seen a couple of ways it's supposed to work, one dhtml and the other javascript, but no matter how I try, I can't replicate it on my page(s).

  4. #4
    alan-d's Avatar
    Join Date
    Aug 2005
    Location
    Sutton Coldfield
    Posts
    2,421
    Thank Post
    360
    Thanked 258 Times in 189 Posts
    Rep Power
    76

    Re: re-size iframes to hold content without scrollbars

    A bit late but saw this whilst looking for something else

    Code:
    <iframe src="http://the website/websitefolder/webpage.htm" width="100%" height="1000" frameborder="0" scrolling="auto"></iframe>
    I believe the bit you want is - scrolling="auto"

SHARE:
+ Post New Thread

Similar Threads

  1. OWA Folder Size
    By apeo in forum Windows
    Replies: 4
    Last Post: 14th October 2009, 05:48 PM
  2. Getting hold of Dell reps
    By tosca925 in forum General Chat
    Replies: 23
    Last Post: 16th March 2009, 11:49 AM
  3. On "hold" to BT on the phone
    By aliv25 in forum General Chat
    Replies: 13
    Last Post: 23rd November 2007, 09:11 AM
  4. Projector image size
    By _Bat_ in forum Hardware
    Replies: 8
    Last Post: 26th April 2007, 03:13 PM
  5. WSUS Size
    By plexer in forum Windows
    Replies: 7
    Last Post: 12th December 2006, 09:08 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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