I am working on a Bootstrap layout where there are 3 rows wrapped in a flex column. Here is how it looks:
<div class="row" style="height:100vh;">
<div class="col d-flex flex-column">
<div class="row">...</div>
<div class="row flex-grow-1">
<table>
...many rows...
</table>
</div>
<div class="row">...</div>
</div>
</div>
The first row at the top of the flex column, the second row takes up all the space in between, and the third row is at the bottom. I want to place a table with many rows in the second row, contained within a "window" that allows scrolling to see the content of the table.
However, the second row expands with the table content. I have tried wrapping the table in a div and setting max-height to 100%, but the flex row still grows due to the table content.
How can I achieve a scrolling effect inside the flex row while taking up the maximum available space of its parent with a fixed height?