Similar Inquiries:
How to arrange divs from top to bottom in CSS
How to order div stack first vertically then horizontally?
When floating or using inline elements, they usually stack like this:
----------------- | 1 | 2 | 3 | 4 | | 5 | 6 | 7 | 8 | -----------------
However, what I aim for is stacking them in the following manner:
----------------- | 1 | 3 || 5 | 7 | | 2 | 4 || 6 | 8 | -----------------
Important Factors: Any amount of elements. All identical in size. They must all be on one "row", no pairing up.
Do you think this can be achieved?
NOTE: I forgot to mention that the container should increase in width allowing a set number of "rows".