Easiest way I can think of is to have nested html tables.
<table>
<tr><td>
<table>
<tr><td>element</td></tr>
</table></td></tr>
etc etc
You can figure out how many elements to put in each column by simply dividing the total number of rows by the desired number of columns
HTH
Rob