Can I make a container the size of the text inside without packaging

The best way to describe my problem is to look at the generated js script: http://jsfiddle.net/tkY7p/

I would like the nested ul to become the size of the longest li inside, without wrapping the string, so it looks like this:
We are long and annoying
and not:
We are
long and
annoying

I already use jquery on the page so that a solution is possible, but if it is possible to do it with css, this option is preferred.

I don’t think it’s possible, but I thought I would ask anyway

Any answers are appreciated =]

+5
source share
1 answer

Use the white-spaceCSS property :

li {  white-space: nowrap; }

jsfiddle demo link

+3

All Articles