A nice way of producing two columns in one <ul>
tag is this
DEMO http://jsfiddle.net/kevinPHPkevin/NChgL/1/
div#multiColumn {
-moz-column-count: 2;
-moz-column-gap: 20px;
-webkit-column-count: 2;
-webkit-column-gap: 20px;
column-count: 2;
column-gap: 20px;
}
I discovered this some time ago and have been using it ever since.
EDITED
Another solution is to float one <li>
left and the other one right and so forth (but does not support IE8 and earlier)
DEMO http://jsfiddle.net/kevinPHPkevin/NChgL/3/
li:nth-child(odd) {
float: right;
}
li:nth-child(even) {
float: left;
}
But you could assign a class to each <li>
. One for the left and one for the right and it would have the same effect as above.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…