Check out my current HTML code structure:
<div class="container>
<div class="parent1"></div>
<div class="parent2">
<div class="child1"></div>
<div class="child2"></div>
</div>
</div>
I'm aiming for the following HTML structure:
<div class="container>
<div class="parent2">
<div class="child1"></div>
<div class="parent1"></div>
<div class="child2"></div>
</div>
</div>
Do you know if it's achievable using solely CSS or JavaScript (without jQuery)? Even if the HTML elements don't physically move, as long as they are displayed in that specific order on the webpage, I would be satisfied.