iFrame Height Question

Discussion in 'PHP' started by BreckenridgeRealtor, Mar 25, 2010.

  1. #1
    This is my first post so I will begin with a quick intro (I have been told that it is rude not to)...

    I am a real estate Broker setting up my own website and do not have any background or training in doing so. But so far I think I am figuring things out as I go pretty well, at least with HTML and CSS. But now I am stuck...

    I set up this page with an iFrame in a .php document for a real estate search service that I subscribe to on a third party site:

    http://www.amenta.com/summitcountyrealestate/search.php

    I do not remember where I got the idea that this was better than using an .html frame but it might have to do with my question...

    I would like for the page to fit in with the overall appearance of the rest of the site and have the iFrame change its height with the height of the page it contains. Right now, the iFrame height is set to 2500px because this seems to be the most I would ever need. But this is way too much most of the time. Setting the height to 100% does not seem to work and I am not sure what else to try.

    Can anyone please offer some advise as to how I can accomplish what I am after and/or where I can go to learn more about the issue?

    Thanks - Ted.
     
    BreckenridgeRealtor, Mar 25, 2010 IP
  2. skywebsol

    skywebsol Well-Known Member

    Messages:
    161
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #2
    skywebsol, Mar 25, 2010 IP
  3. BreckenridgeRealtor

    BreckenridgeRealtor Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks...I would like to avoid the scroll bars that this example shows and have the iFrame be unnoticeable to the user. The idea would be to have the iFrame resize with the size of the page it contains.
     
    BreckenridgeRealtor, Mar 25, 2010 IP