css make div full height of page code example
Example 1: stretch div to full height
#root {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
}
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>