This is similar but not what I want to do. The difference is that I want elements to move in the next column when the current column is full, depending on the height or even better - if I could limit limit the number of elements in a column with css.
Unfortunately there doesn’t seem to be a way to do what you want and the quiz Ralph linked to was the closest we got but is not much use in the real world as it’s a little contrived.
About automatic ways - I know it’s not the most efficient way, but I would use a php script for that - so that it would make html on the go. I would devide the holder into three columns and php would know if one of them is already full and it should start a new one.