Currently I have a number of divs of undefined length/height. they contain a few hyperlinks as a list.
The almost-desired effect is achieved by giving these divs float:left; width:150px; margin: 10px;
However, in the scenario of the first div containing just 1 link, and the second div containing 10 I get the following result (numbers represent divs):
1 2 5
3 6
4 7
8
预期成果如下:
1 3 6 1 4 7
2 4 7 or 2 5 8
5 8 3 6