How to fit div height to 100% of the browser window
Created On: 16/09/2021
To make a div height 100% of the browser window, we can use the vh
CSS property.
The html code is below.
<html>
<body>
<div class="container">
</div>
</body>
</html>
The CSS code is below.
.container {
height: 100vh;
}