I have a flexbox layout which follows a certain order on mobile and should reorder itself on desktop/tablet. All the elements are thrown into one wrapper being able to reorder.
The order on mobile is as follows:
Aside 1st
-> Image 1
Content
Aside 1st
-> Image 2
Aside 2nd
-> Image 3
On desktop i'd like to have:
Aside 1st
-> Image 1
-> Image 2
Content
Aside 2nd
-> Image 3
So the problem on desktop is that the second image should wrap below the first image. Nesting can't be done here because it would throw the desired order on mobile.
<div class="wrapper">
<div class="left-first">
<img src="http://lorempixel.com/g/200/200/">
</div>
<div class="content">
[ ... ]
</div>
<div class="left-second">
<img src="http://lorempixel.com/g/300/300/">
</div>
<div class="right">
<img src="http://lorempixel.com/g/250/250/">
</div>
</div>
Let me illustrate the problem with this fiddle: https://jsfiddle.net/wd8obb0k/
Thanks a lot for your help!