here is the challenge I'm trying to figure out. I need to swap A - B and E - F divs in reverse order using css, but C - D leave as it is.
Here is the code I'm using JSfiddle
<style> .column div { display: block; border: 1px solid red; margin: 0 auto 20px; text-align: center; width: 300px; } </style> <div class="column"> <div>A</div> <div>B</div> <div>C</div> <div>D</div> <div>E</div> <div>F</div> </div>
flexbox+flex-orderwill solve your problem