htmliframe

How do I make an iframe fit the entire screen without specifying dimensions?


If I don't specify any dimensions, the iframe appears tiny. If I do specify dimensions as follows then it does not properly scale for different screen resolutions

<iframe name="report"style="height:1200px;width:800px;">

Is there a way to automatically allow the iframe to stretch to the entire screen?


Solution

  • Use %

    <iframe name="report" height="100%" width="100%"></iframe>