i am using bootstrap 4 grid. i have 3 columns. i want first and third column to be col-8 and second column to be col-4. basically second column is a sidebar which i want to fall between first and third column on small screens. unfortunately my second column has dynamic height and is very long so the first column gets assigned height of second column leaving the third column start from the bottom of second column with lots of space between first and third. i would like column 3 to fall right under the text of first column.
i hope that makes sense.
This is the image of what I'm trying to do:
<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>