View Single Post
  #1  
Old 03-25-2010, 05:46 AM
  inkcarts's Avatar 
inkcarts inkcarts is offline
 

Advanced Member
  
Join Date: Sep 2008
Location: Crowley Louisiana
Posts: 45
 

Default 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
__________________
Lyn Askin
X-Cart 4.2.3
MICR Toner
Toner Cartridges
X-Cart Search Engine Optimization
Reply With Quote