Is there a way to rearrange the HTML structure using CSS only to move Content 3 Div (div3) to the top? The sequence of elements cannot be changed.
I attempted to use negative margin, but it only works if the height of Div 1 and 2 is fixed. However, the content in div 1 & 2 are dynamic and have varying heights.
I need assistance in finding a solution that is compatible with IE9 and above.
<div class="container">
<div class="div1"> Dynamic <br>Content 1</div>
<div class="div2">Content <br> 2</div>
<div class="div3">Content 3</div>
<div class="div4">Content 4</div>
<div class="div4">Content 5</div>
</div>