www.webdeveloper.com
Results 1 to 3 of 3

Thread: Auto adjust iFrame to the webpage it's on?

  1. #1
    Join Date
    Sep 2005
    Posts
    8

    Cool Auto adjust iFrame to the webpage it's on?

    Hello, I'd like to make an iframe that will automatically get the height of the webpage it is on (not the source url) - I'm not talking the browser viewport but the entire document - so basically the height in pixels minus a certain value to prevent the iframe from sliding out - example:
    Code:
    <iframe src="http://google.com/" height="CURRENT DOCUMENT'S HEIGHT MINUS 50" width="FIXED"></iframe>
    Maybe it is better to achieve this function in php - or any other way? And perhaps there is some better way than an iframe - like a container of some sort that can automatically expand to the webpage's length...

    Thanks in advance!

  2. #2
    Join Date
    Mar 2007
    Location
    Canada
    Posts
    99

  3. #3
    Join Date
    Sep 2005
    Posts
    8
    Thanks, solved this already.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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



Recent Articles