I’d like to have a fluid horizontal list with a static “Browse All” on the right. If possible, I’d like this to be a single unordered list.
Item One | Item Two | Item Three | Item Four | Item Five | Item Six | Browse All
The only catch is, as the screen narrows, I’d like to hide the far right items when the space isn’t there ( excluding the :last ).
Item One | Item Two | Item Three | Item Four | Browse All
Is there a way to accomplish this with CSS or do I need to get into some JavaScript? If I need to use JavaScript what’s the best approach? Do I detect how many are visible and set the widths on each? I tried with CSS Media Queries but the variable character length of the list items make that difficult.
Any help would be greatly appreciated.
Here’s a JavaScript+jQuery solution: http://jsfiddle.net/thirtydot/37FtV/