Multiple Column List

I have one list with 10 (li) elements. They are displayed in one column.

If I set the height of this list, then how can I display it in two or three columns?

+3
source share
4 answers

There is a CSS3 solution for this, but so far it is not widely implemented by browsers. See this example using the CSS property column-count:

http://jsfiddle.net/hwzpy/

Currently works only in FF, Safari and Chrome. Otherwise, you will have to use javascript or split the list into two lists.

-edit- The float option related in other answers is really neat, didn't know about it.

+3
source

you can check this few column columns

+4

This question has been asked before. See html css talk - how to create multiple list columns? . There is also a helpful A List Apart article that covers six methods for this.

+1
source

You can do this very easily with the jQuery-Columns Plugin , for example, to split ul with the .mylist class into 5 columns, which you will do

$(document).ready( function () {
  $('.mylist').cols(5);
});

Here's a live jsfiddle example

0
source

All Articles