I am facing a challenge with organizing 10 divs into 2 columns using CSS. Currently, when I float them all, they are displayed in the following column format:
1 2
3 4
5 6
7 8
9 10
However, my desired layout is as follows:
1 6
2 7
3 8
4 9
5 10
Is there a way to achieve this using only CSS? If not, what would be the most efficient jQuery solution without altering the existing markup which is generated by a complex system?
The current markup structure is simple:
<div class="item">
...
</div>
<div class="item">
...
</div>
...