I’m trying to do something like this :

I have three div with no fixed width. The left (red) and right (blue) areas should have the exact same width as their content (an image). The left and right area can have different width.
The center div will have some text which can be larger than the div and that should have an ellipsis.
The difficulty is that I don’t know any width and I’d like to avoid javascript.
HTML:
CSS:
This uses CSS3, so it may have limited browser support.
Edit:
If you don’t know the desired width of the middle column, I don’t know any way do that without at least some JavaScript. Fortunately, the JS should be very simple. Using jQuery, and without the
style="width:100px;"part in the HTML above:Working demo on jsFiddle: http://jsfiddle.net/qPbfw/