I would like to make a list, such as the following, in 2/3 evenly spaced columns
<ul>
<li>one<li>
<li>two<li>
<li>three<li>
<li>four<li>
<li>five<li>
<li>six<li>
<li>seven<li>
<li>eight<li>
<li>nine<li>
</ul>
One solution is to split the list into two lists and put one of them on the right, possibly with a note, for example.
<div id="col2">
<ul>
<li>one<li>
<li>two<li>
<li>three<li>
<li>four<li>
<li>five<li>
</ul>
</div>
<ul>
<li>six<li>
<li>seven<li>
<li>eight<li>
<li>nine<li>
</ul>
#col2 {
float: right;
margin-right: 450px;
}
This works fine, but has a number of disadvantages:
- (Un) semantic markup is not exactly 2 lists, I divided one list into 2 to simplify the style
- Fields must be manually set to give a view of uniform distribution.
- If the browser is narrow enough, the right column will work in the second.
Is there a better way to do this, preferably without using a table?
Update:
1, . 3- , , "". ?