I have a wrapper element with a variable width (it must depend on the browser current width).
Inside that wrapper there could be 1, 2 or 3 span elements.
The length of the text on each spans
is unknown.
This is the behavior expected, but for this example I was forced to define a width for each span
of 30% (define a width of 30% to use the text-overflow:ellipsis
), But, and I can not assign a fixed width in this elements since I font know how many spans will be.
Is there a way to get this behavior without specify a width for each element and without using java script?