Here is the current HTML structure:
<div class="main-parent">
<div class="column-left">
<div class="1">
1
</div>
<div class="2">
2
</div>
</div>
<div class="column-right">
<div class="3">
3
</div>
<div class="4">
4
</div>
</div>
</div>
The CSS code for this layout is as follows:
.main-parent {
display:flex;
flex-direction:column;
}
.1 {
order:4;
}
.2 {
order:3;
}
.3 {
order:2;
}
.4 {
order:1;
}
I am facing issues with changing the order property due to having two different children divs under the main parent with a flex display.
Is there a way to resolve this problem without removing the left and right columns?