I'd like to organize my divs in column form, but not side by side, but rather one over the other. Normally when using float: left
or display: inline-block
the elements are placed side by side up to the size limit, and then a new line is created, eg:
|DIV 1| |DIV 2| |DIV 3|
|DIV 4| |DIV 5| |DIV 6|
|DIV 6| |DIV 7| |DIV 8|
But I wish they would look like this:
|DIV 1| |DIV 4| |DIV 7|
|DIV 2| |DIV 5| |DIV 8|
|DIV 3| |DIV 6| |DIV 9|
I do not want to have to create several columns and put each div there, I want them to organize themselves this way, how can I do it?