My current project involves the use of a bootstrap 4 card element:
<div class="card" style="height:"500px;width:100px">
<div class="card-body">
<div class="top-portion">
This section can be variable in height.
</div>
<div class="content" style="overflow-y">
....
....
</div>
</div>
</div>
I am facing a challenge with getting the ".content" div to take up the remaining vertical space and become scrollable when needed. I understand that I need to add "max-height:..." to its styling.
The issue arises because the height of the ".top-portion" varies, making it difficult for me to determine the exact value to set for "max-height".