I have a bootstrap card with a header, footer and a list between these two. I want the header and footer to be fixed and the middle part to be adjusted to the height of the window (the body), so that the middle part can have a scroll bar if the content is bigger than the body of the page. I could only do this with fixed heights in the "ul" element but I want it to cover the height of the body.
<div class="card">
<div class="card-header">
Header title
</div>
<ul class="list-group list-group-flush" style="overflow-y: auto; height: 500px;">
<li class="list-group-item list-group-item-action"> one </li>
<li class="list-group-item list-group-item-action"> two </li>
...
<li class="list-group-item list-group-item-action"> n </li>
</ul>
<div class="card-footer">
Footer
</div>
</div>