I have a case which I'm trying to solve with pure CSS, but I somehow feel like it is not possible (or at least not without using tables).
Imagine following layout
<div class="parent"> <span class="name"> Some name </span> <span class="number"> 123 </span> </div> I want the parent to be of a fixed width and then have name followed inline by number. However, if the name is too long, I would like it to truncate (using ellipsis), but the number should remain and be moved to the right until it reaches the border of parent.
Here are few examples to illustrate.
Short text 1 | Longer text 12 | Very, very lon..123| Notice that also the number text can have variable length (thus the width can't be fixed).
Any ideas?