I'm trying to have the div with id as listItems fill the remaining height on the page. I'm fairly new to web dev front-end and have tried several different ways but it hasn't seemed to work.
The div with the green border is what I'd like to fill the remaining height, keeping the form above it too. For some reason the whole height of the window has a scroll bar already, I was thinking the black/red border would just go to the bottom of my screen but surpasses it for some reason as well. Any ideas on what to try to fix these issues?
HTML/CSS markup:
<!DOCTYPE html>
<html>
<head>
<style>
.home-content {
display: flex;
border: 1px solid black;
height:100vh;
flex-flow: column;
}
.container {
flex: 1;
border: 1px solid red;
}
#listItems {
border: 1px solid green;
}
</style>
</head>
<body>
<div class="home-section">
<div class="home-content">
<div class="container">
<form>
<label for="example">Input</label>
<input type="text" name="example">
</form>
<div id="listItems">
</div>
</div>
</div>
</div>
</body>
</html>