I have BootStrap 4 and I'm trying to get some column's height equal to another. Here is my code:
<div class="container" style="overflow:hidden">
<div class="row" style="overflow:hidden">
<div class="col-md-8" id="firstColumn">
<div class="row">
<div class="col-md-6">
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md">
</div>
</div>
</div>
<div class="col-md-4" id="secondColumn" style="overflow:auto">
</div>
</div>
</div>
My secondColumn
has a higher height than firstColumn
, but I want it to have the same height as firstColumn
while also being scrollable.
I want to mention that my columns are in a modal which when user clicks a button loads data from my database and populates the modal. So on page load if I set their height equal it will not work.