I am fetching unknown number of data elements from the DB.
Each element will be displayed inside some <div> with style.
I know that I want to show 4 columns, but fill the data from top to bottom.
so if I get an array: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
Display it like so:
1 4 7 10
2 5 8 11
3 6 9
Is there convenient way with bootstrap or I will have to calculate the number of elements first then while iterating them I assign new row/column?