I have a page with this structure:

<html> <head> </head> <body> <div id="NavPanel"> </div> <div id="container"> </div> </body> </html> 

With horizontal filling, everything is fine, but with vertical filling, not really. How to make div container fill the page in height and width?

  • one
    #container {height: 100vh;} - Alex

1 answer 1

 #container { box-sizing: border-box; width: 100vw; height: 100vh; }