I'm trying to create in div 2 spans that once they fill the available space, they take 2fr and 1fr space... it has few rules:
- if there's room, 1st span will fill the available space:
<div>
<span>longgggggggggg</span>
<span>text</span>
</div>
result:
longgggggggggg text
- if they overflow, they are seperated to 2fr and 1 fr:
<div>
<span>longgggggggggggggggggg</span>
<span>textttttttttt</span>
</div>
result:
longgggggggg... textt...
- if they are short, they float left (also, second part can fill rest, it is limited to 1fr only if first part fills the space):
<div>
<span>short</span>
<span>textttttt</span>
</div>
result:
short textttttt