Is it possible to align 3 divs differently based on screen width using Bootstrap flexbox classes? For example, I want them to align like the top image below on small widths (<576px) and like the bottom image below on larger widths (>576px).
https://i.sstatic.net/LR9km.png
I have tried using the basic set up with flexbox:
<div class="d-flex">
<div>A</div>
<div>B</div>
<div>C</div>
</div>
However, I have not been successful in achieving the desired alignment as A
and B
do not share the same div on both small and large screens. I have experimented with different classes but have not found a solution.