Dynamic Number of Columns
Posted: Tue Feb 02, 2010 1:59 am
I'm sure you guys know what I'm talking about. You've got a long list. Lots of horizontal white space, you want to list it in columns like a newspaper classified.
How do you guys handle the "dynamic number of columns" problem? Javascript? Css? Php? Specifically I am talking about a solution that computes the number of columns, based on item width, and actually renders it.
Explain your approach and post code if possible. I am very interested (especially if there are out of the box solutions). This is a recurring problem and demands a solid solution, if one doesn't exist.
How do you guys handle the "dynamic number of columns" problem? Javascript? Css? Php? Specifically I am talking about a solution that computes the number of columns, based on item width, and actually renders it.
Explain your approach and post code if possible. I am very interested (especially if there are out of the box solutions). This is a recurring problem and demands a solid solution, if one doesn't exist.