How Can I do this. . .
Let's say I have a Category, with X number of subcategories. . .
I'd like to lay them out in 4 columns, instead of reading left to right though, I'd like to lay them out in 4 columns, top to bottom. . Let me see if i can explain that better. . . .
I'd like to count the number of subcategories, then divide by the number of columns.
So, if there are 100 subcategories, and I want them in 4 columns. .
100/4 = 25 in each column
<ul>
then 25 <li>subcat</li>'s
</ul>
<ul>
then 25 more <li>subcat</li>'s
</ul>
<ul>
then 25 more <li>subcat</li>'s
</ul>
<ul>
then 25 more <li>subcat</li>'s
</ul>
Any ideas how I can do this?
Thanks!
Lyn
|