[thelist] possible to wrap lines up instead of down?

Maximillian Schwanekamp lists at neptunewebworks.com
Thu Feb 10 13:45:23 CST 2005

Mattias Thorslund wrote:
> Is there any hope of doing this dynamically in the browser with CSS 
> rules somehow, or must I make the server "wrap" the rows of tabs by 
> simply putting them on separate lines? The latter will cause the 
> wrapping of lines more often than necessary since I can't know the width 
> of the user's browser, and I try to avoid side scrolling.

Shot in the dark here, but perhaps you could set your tab widths 
relative to viewport size (e.g. 20%), and use the server to "chop" your 
menu items into two lists when you have more than would fill 100%.  Your 
CSS would have something like
.moretabs{ margin: -50px}
(if your tab height was set rigidly for 50px), or perhaps you could 
server-script your CSS with PHP or similar to set your margins according 
to the number of rows.

I think it can be done, but is it worth the effort?

Maximillian Von Schwanekamp

More information about the thelist mailing list