In my project, I have a section where I am trying to display nested elements using bootstrap for a more organized layout.
Here is the current HTML code:
<div class="container">
<div class="row d-flex d-lg-block">
<div class="col-lg-8 order-1 float-left">
<div class="card card-body tall">2</div>
</div>
<div class="col-lg-4 order-0 float-left">
<div class="card card-body">1</div>
</div>
<div class="col-lg-4 order-1 float-left">
<div class="card card-body">3</div>
</div>
</div>
</div>
This code displays the elements in a specific order on desktop, which is not what I want. I am looking to rearrange them like this:
--------- ---
| 1 | | 2 |
| | | |
------- | |
| 3 | | |
| | | |
------- | |
-----
For the mobile version, I want them stacked in order like this:
--------
| 1 |
| |
--------
| 2 |
| |
| |
| |
| |
| |
--------
| 3 |
| |
--------
I attempted to use float-right
but it did not give me the desired result. Can anyone advise on how to achieve the desired layout?