Dear lazyweb --

Is there any way to make a html list be formatted like ls formats a list of filenames? That is, in columns where the number of columns is determined by the width the list has to display in, and the width of the elements, and the number of elements.

I coded this same display for debconf's readline frontend a while back and it was not entirely trivial, so I doubt that CSS can support it, but would be happy to be proven wrong.

discussion