I am trying to achieve a specific layout on both desktop and mobile devices. On desktop, I want the layout to be structured as follows:
[1][2]
[3][2]
The requirement is for column 2 to be the same height as columns 1 and 3 on desktop screens.
For the mobile layout, I want the structure to change to:
[1]
[2]
[3]
I have attempted two different options to achieve this layout:
Option 1:
<div class="row">
<div class="col-md-7">
<span>1</span>
</div>
<div class="col-md-5">
<span>2</span>
</div>
<div class="col-md-7">
<span>3</span>
</div>
</div>
The issue with this approach is that block 2 ends up being the height of block 1 only.
Option 2:
I considered using column ordering to place block 2 between blocks 1 and 3:
<div class="row">
<div class="col-md-7">
<div>
<span>1</span>
</div>
<div>
<span>3</span>
</div>
</div>
<div class="col-md-5">
<span>2</span>
</div>
</div>
However, I believe this approach may not be possible.
Are there any alternative methods that I have overlooked? Or is it feasible to achieve this layout using one of the methods mentioned above?
Thank you.