I am working with the Bootstrap 4 grid system and have a layout with 3 columns. I want the first and third columns to be col-8, and the second column to be col-4, acting as a sidebar that falls between the first and third columns on small screens. However, the second column has dynamic height, causing the first column to inherit the same height and leaving a large gap between the first and third columns. I would like the third column to align under the text of the first column.
Here is an image illustrating what I'm trying to achieve:
<div class="container">
<div class="row ">
<div class="col-sm-8 ">
<div>One of three columns</div>
<div>One of three columns</div>
</div>
<div class="col-sm-4 ">
<div>Two of three columns</div>
<div>Two of three columns</div>
<div>Two of three columns</div>
<div>Two of three columns</div>
<div>Two of three columns</div>
<div>Two of three columns</div>
</div>
<div class="col-sm-8">
<div>Three of three columns</div>
<div>Three of three columns</div>
<div>Three of three columns</div>
</div>
</div>
</div>