multi column lists

Thread Solved

Join Date: Apr 2008
Posts: 35
Reputation: cali_dotcom is an unknown quantity at this point 
Solved Threads: 0
cali_dotcom cali_dotcom is offline Offline
Light Poster

multi column lists

 
0
  #1
Jul 22nd, 2009
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?
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1,342
Reputation: almostbob has a spectacular aura about almostbob has a spectacular aura about 
Solved Threads: 163
almostbob's Avatar
almostbob almostbob is offline Offline
Nearly a Posting Virtuoso

Re: multi column lists

 
0
  #2
Jul 22nd, 2009
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
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it

Please mark solved problems, solved
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 35
Reputation: cali_dotcom is an unknown quantity at this point 
Solved Threads: 0
cali_dotcom cali_dotcom is offline Offline
Light Poster

Re: multi column lists

 
0
  #3
Jul 23rd, 2009
thanks almostbob, that really helped me solve this problem.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,210
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 164
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: multi column lists

 
0
  #4
Jul 29th, 2009
Not a good solution, because it uses pixel widths.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC