.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 call this one the header</p>
<div class="lots-of-content-div">
<ul>
// A reaaaaally long list!
</ul>
</div>
</div>
I'd like the lots-of-content-div
div be scrollable, rather than the entire body without setting absolute heights, so I can paste the component anywhere and have it fill the entire vertical space. How do I do so?