I have 4 columns displayed like this on desktop, and I want them to rearrange to look like the following on mobile. Do I need custom CSS for this?
(I can't post images yet, so here is the link to the image: https://i.sstatic.net/b0gUZ.jpg
I've attempted putting them in parent columns of two each, but it hasn't worked out. I specialize in backend development, so frontend tasks are not my forte.
Current HTML:
<div class="row">
<div class="col-md-6 col-sm-12">
<div>A</div>
<div>C</div>
</div>
<div class="col-md-6 col-sm-12">
<div>B</div>
<div>D</div>
</div>
</div>
I want it to look like how I've shown in the image.
How can I achieve this without using JavaScript? Any guidance would be appreciated.
Thank you.