full page iframe in php? how

Discussion in 'PHP' started by netsearch, Mar 21, 2012.

  1. #1
    
    <iframe src="<?php echo $site; ?>"  frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%" scrolling="auto"></iframe>
    Code (markup):
    I running a redirection script depending on referrer and need to pull up the site in a iframe, but I can not get the frame width/height 100%

    any help.
     
    netsearch, Mar 21, 2012 IP
  2. Alex Roxon

    Alex Roxon Active Member

    Messages:
    424
    Likes Received:
    11
    Best Answers:
    7
    Trophy Points:
    80
    #2
    This isn't a PHP issue at all, it's an HTML/CSS issue.

    Try using CSS. Make sure it's parent container is also 100% (both width and height).
     
    Alex Roxon, Mar 21, 2012 IP
  3. Arttu

    Arttu Member

    Messages:
    139
    Likes Received:
    2
    Best Answers:
    8
    Trophy Points:
    40
    #3
    style="width:100%;height:100%"
     
    Arttu, Mar 22, 2012 IP