Hi, i have a problem trying to style a dynamically generated lists. the list ia dynamically generated with ajax and could be very long. i set a div container for the list but right now the list overflows way beyond the div container.
i would need the list to some be arranged in 3 or more columns. preferably from top to bottom and then to top of the next column on the right, so there is no overflow.

does anyone have any idea how i can do just that?

Recommended Answers

All 3 Replies

there is a tutorial http://www.bleepingcomputer.com/forums/topic56091.html
this one makes the list
1 2 3
4 5 6
7 8 9
it may not take much rewriting to have ajax count the total number of return values /3 then assign the classes appropriately to produce
1 4 7
2 5 8
3 6 9

thanks almostbob, that really helped me solve this problem.

Not a good solution, because it uses pixel widths.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.