943,917 Members | Top Members by Rank

Ad:
Jul 22nd, 2009
0

multi column lists

Expand Post »
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?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
cali_dotcom is offline Offline
51 posts
since Apr 2008
Jul 22nd, 2009
0

Re: multi column lists

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
Reputation Points: 562
Solved Threads: 368
Posting Maven
almostbob is offline Offline
2,970 posts
since Jan 2009
Jul 23rd, 2009
0

Re: multi column lists

thanks almostbob, that really helped me solve this problem.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
cali_dotcom is offline Offline
51 posts
since Apr 2008
Jul 29th, 2009
0

Re: multi column lists

Not a good solution, because it uses pixel widths.
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
MidiMagic is offline Offline
3,314 posts
since Jan 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: How do i make a form that doesn't open the e-mail client?
Next Thread in HTML and CSS Forum Timeline: Page layout with no scroll's problem on IE





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC