use only vh vw css code example
Example 1: set element equal to the size of the viewport
.container {
height: 100vh;
overflow: auto;
}
Example 2: what are the viewport based units in html
The viewport based units are:
vh , vw , vmin, vmax .