1

I'm making a website (codersdomain.site88.net) and I have an iframe that needs to extend to the bottom of my browser window. Here's my html:

<!DOCTYPE html>
<head>
<link rel="icon" 
      type="image/png" 
      href="./icon.png">
</head>
<title>Coder's Domain</title>
<body style="overflow-x:hidden; overflow-y:hidden; height:100%;"
 background="BG.jpg">
<div align="center">

<iframe tabindex="-1" style="height:590px; width: 596px; overflow-y:'scroll' overflow-x:'hidden' " src="index_data.html"frameborder=0 ></iframe>
</div>

</body>

can somebody tell me how I might make the height automatically extend to the bottom of the window?

body { overflow-x:hidden; overflow-y:hidden; height:100%; }
iframe {height:590px; width: 596px; overflow-y:'scroll' overflow-x:'hidden'}
    <body
     background="BG.jpg">
    <div align="center">
    
    <iframe tabindex="-1" src="index_data.html" frameborder=0 ></iframe>
    </div>
    
    </body>

1 Answers1

3

Just change the height to 100%

 <iframe tabindex="-1" style="height:100%;
 width: 596px; overflow-y:'scroll' 
 overflow-x:'hidden' " src="index_data.html"frameborder=0>

</iframe>
</div>
Shubham Chahal
  • 774
  • 1
  • 5
  • 7