My website features a div that expands in height to match the screen size.
Below is the CSS I am using:
.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 want this div to adjust automatically if the content exceeds the screen size.
Here's what I have tried:
.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 adjust automatically with the above code, unless I remove 'height: 100vh', but then the height doesn't fit the screen depending on the content of the div.
How can I ensure the div fits the size of my screen even when empty and expands automatically in height as more content is added?