I am trying to create a layout which allows me change the order of elements between mobile and desktop as demonstrated by the diagram bellow:
I have ordered them in the DOM within a single container in the order as they are numbered. I'm trying to get the second item to display to the left as shown. I tried with flex but couldn't get it right. I also tried floating the second div to the left and the rest to the right, but this is messy, especially if the 4th element in right column overlaps the 3rd.
Can somebody help me with this?
Thanks