Check out this JS Fiddle example
.grid {
height:100%;
display:grid;
grid-template-rows:auto 1fr;
background-color:yellow;
}
.lots-of-content-div {
height:100%;
background-color:orange;
overflow-y:auto;
}
<div class="grid">
<p>Let's designate this as the header section</p>
<div class="lots-of-content-div">
<ul>
// A very lengthy list!
</ul>
</div>
</div>
If I want the lots-of-content-div
div to be scrollable without specifying absolute heights, allowing me to easily insert the component anywhere and have it fill the entire vertical space, how can I achieve this?