Results 1 to 3 of 3

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

  1. #1
    Join Date
    Sep 2005

    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:
    <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

  3. #3
    Join Date
    Sep 2005
    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