I have the following layout problem. 4 blocks one after the other a1,b1,a2,b2 in a column on mobile. On the desktop I want to get a1,a2,b1-b2 that is a1 followed by a2 followed by b1-b2 on same row but below a2. I was hoping to use flexbox but not sure how to go about this.
mobile:
<div style='display:flex;flex-direction:column>
<div id='a1'></div>
<div id='b1'></div>
<div id='a2'></div> //each of these is 100VW
<div id='b2'></div>
</div>
desktop:
<div id='a1'></div> // the first two are 100vw
<div id='a2'></div>
<div id='b1'></div><div id='b2'></div> //each of these would be 50vw
Is there a way to do this with one version of the html and only modifying the css?