I am currently using BootStrap 4 and I am attempting to make a column's height equal to another column. Below is the code snippet I am working with:
<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>
Currently, my secondColumn
has a higher height than firstColumn
. My goal is to have both columns be the same height while keeping the second one scrollable.
It is important to note that these columns are within a modal. When a user clicks a button, data from the database is loaded into the modal. Due to this dynamic loading, setting their heights to be equal on page load does not achieve the desired result.