On my web page I have a div that expands(height) to fit the size of the screen.
Here is my CSS:
.round-cornerapp {
-webkit-border-radius: 5px 5px 5px 5px;
-moz-border-radius: 5px 5px 5px 5px;
-o-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px;
background-color: #C2C2BD;
height:100vh;
padding-top: .5cm;
}
I would like the div to adjust automatically if the content extends the size of the screen.
I have tried the following:
.round-cornerapp {
-webkit-border-radius: 5px 5px 5px 5px;
-moz-border-radius: 5px 5px 5px 5px;
-o-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px;
background-color: #C2C2BD;
height:100vh;
height:auto;
padding-top: .5cm;
}
The height does not extend automatically with the above unless I remove height: 100vh at which point the height no longer fits the screen depending on the content of the div.
How can I make the Div fit the size of my screen even when empty and automatically expands in height as divs are added