You could use JavaScript to set the width of UL, add up all of the LI's widths together, and then set the UL width.
Or i think if you set the UL's whitespace to:
And put the LI's display to:Code:white-space: nowrap;
I think ( but im not 100% sure ), i think it might work.Code:display:inline;