css height 100 percent code example
Example 1: css window height
div {
height: 100vh;
}
Example 2: css window height
body, html {
height: 100%;
}
#right {
height: 100%;
}
Example 3: 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>