I have many divs with variable height. I need these divs sort under each other but when they will reach end of window –> create new \"column\".
Try something like this: Where maxHeight is exactly equal to height of the window.
The Javascript to loop through this will require a bit of attention but it is plenty possible.