Currently, I am working on a responsive layout using Bootstrap 4 with two columns. Each column contains a total of 9 divs - four in the first column and five in the second column. My goal is to rearrange the order of the divs within the columns when the viewport size is below LG breakpoint.
Here is an overview along with the desired order:
https://i.stack.imgur.com/O4rpp.png
This is what I have at the moment:
<div class="container">
<div class="row">
<div class="col-lg-8">
<div class="mb-4">
left 1
</div>
<div class="mb-4">
left 2
</div>
<div class="mb-4">
left 3
</div>
<div class="mb-4">
left 4
</div>
</div>
<div class="col-lg-4">
<div class="mb-4">
right 1
</div>
<div class="mb-4">
right 2
</div>
<div class="mb-4">
right 3
</div>
<div class="mb-4">
right 4
</div>
<div class="mb-4">
right 5
</div>
</div>
</div>
</div>