This works just fine cross-browser, no JS required. You just limit the width of your columns.
- 1(li)
- 2(li)
- 3(li)
- 4(li)
- 5(li)
- 6(li)
- 7(li)
- 8(li)
- 9(li)
- 10(li)
If you are stuck with them all in one UL on page load, you can split them out with jQuery to create the same results: