Is there a way to create this specific layout using CSS?
It's important to note that the order of elements should change on mobile compared to desktop!
https://i.sstatic.net/GRIxV.png
Currently I'm working with bootstrap 4. The code below "works" for desktop but not for mobile.
<div class="container">
<div class="row">
<div class="col-md-4">
<div class="a">
A
</div>
<div class="d">
D
</div>
</div>
<div class="col-md-8">
<div class="b">
B
</div>
<div class="c">
C
</div>
</div>
</div>
</div>
How can I achieve the desired layout? I am considering solutions involving:
- Bootstrap 4
- Flexbox
- CSS Grid