how to set full height in css code example
Example 1: make a div full screen css
height: 100vh
Example 2: full page height css
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<style>
body {
height: 100%;
margin: 0;
}
.full-height {
height: 100%;
background: green;
}
</style>
</head>
<body>
<div class="full-height">full page height css</div>
</body>
</html>
Example 3: css set div heigtto screen
.left {
height: 100vh;
width: 50%;
background-color: grey;
float: left;
}
.right {
height: 100vh;
width: 50%;
background-color: red;
float: right;
}