How to alter iframe size

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vjayis
    New Member
    • Mar 2008
    • 134

    How to alter iframe size

    Hi

    i'm using aan iframe to diaplay the search results of public search engines.,

    the page includes.,

    header
    iframe
    footer

    in the iframe i hav included the search engines result page., but different engines hav diffenent page length.,
    Is there any way to automatically fix the page length regarding the search results.,

    example
    [code=php]
    <?
    $qq="php";
    $link="http://en.wikipedia.or g/wiki/".$qq;
    <iframe src="<? echo $link;?>" vspace="0" height="700px" hspace="0" style="overflow :visible; width:99%" scrolling="no"> </iframe>
    ?>
    [/code]
    i tried even by not specifying the height but it does'nt get worked., i get two scroll bars.,

    so is there any way to display the iframe without the scroll bars by automatically fixing the heights??

    help me in this.,

    thanks
  • TheServant
    Recognized Expert Top Contributor
    • Feb 2008
    • 1168

    #2
    Well if you are displaying someone elses page, you cannot specify their CSS (that I know of). So unless they have their height unset, %, or auto, they will have specified their height (eg. 1000px) and you will not be able to change it.

    Maybe you can set your iframe height as "auto"? If that doesn't work, try "100%". I have little experience with frames, but give that a go and let us know if it works.

    BTW, I think this is a HTML question rather than PHP.

    Comment

    • Atli
      Recognized Expert Expert
      • Nov 2006
      • 5062

      #3
      I've moved this thread over to the HTML/CSS forums.
      Please try to post your questions in the appropriate forum.

      Comment

      • vjayis
        New Member
        • Mar 2008
        • 134

        #4
        Originally posted by TheServant
        Well if you are displaying someone elses page, you cannot specify their CSS (that I know of). So unless they have their height unset, %, or auto, they will have specified their height (eg. 1000px) and you will not be able to change it.

        Maybe you can set your iframe height as "auto"? If that doesn't work, try "100%". I have little experience with frames, but give that a go and let us know if it works.

        BTW, I think this is a HTML question rather than PHP.

        Hi

        already tried by setting the height to 100% and auto., but does'nt get worked.,

        and as u said i fixed the height of the iframe with a particular search query., but when a different query is entered the height varies and so that the scroll bar comes in.,

        And sorry for posting it in the wrong place.,

        thanks

        Comment

        Working...