height 100vh css code example
Example 1: what is 100vh in css
height: 100vh = 100% of the viewport height.
Example 2: css 100% height
<!DOCTYPE html>
<html>
<head>
<title>100% height</title>
<style>
html,
body {
height: 100%;
margin: 0;
}
.container {
height: 100%;
background: #000; /* to see the effect */
}
</style>
</head>
<body>
<div class="container"></div>
</body>
</html>