I am working on a design that needs to be responsive, with a simple layout on mobile:
[A]
[B]
[C]
However, on desktop, I want [B] to be larger and positioned to the right side, while A and C stack on the left.
[ A ][ B ]
[ C ][ B ]
I am wondering if Bootstrap 4 has the capability to achieve this, or if I will need to write custom grid CSS?
Update: here is an example showcasing the current layout:
.a { background-color: red; }
.b { background-color: blue; }
.c { background-color: green; }
img {max-width: 100%; }
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet" />
<div class="container">
<div class="row">
<div class="a col-md-5">
A
</div>
<div class="b col-md-7">
<img src="https://upload.wikimedia.org/wikipedia/commons/8/8f/Example_image.svg" alt="B (should be right of A and C on desktop)" />
</div>
<div class="c col-md-5">
<p>C (should be below A and left of B on desktop)</p>
</div>
</div>
</div>
https://codepen.io/nfriedly/pen/rqMLBw
Update 2: To provide further clarity, here are images illustrating the elements ([A] in red, [B] in blue with an image, [C] in green).
Current layout:
https://i.sstatic.net/Ew21T.png
Desired layout: