Given a template where the HTML cannot be modified because of other requirements, how is it possible to display (rearrange) a div above another div
div
A CSS-only solution (works for IE10+) – use Flexbox's order property:
order
Demo: http://jsfiddle.net/hqya7q6o/596/
#flex { display: flex; flex-direction: column; } #a { order: 2; } #b { order: 1; } #c { order: 3; }
A B C
More info: https://developer.mozilla.org/en-US/docs/Web/CSS/order