Trying to create a CSS layout where three texts are placed side by side without wrapping, but once the first text is too long, it needs to be truncated. Check out the image below for more details.
Methods I have attempted so far:
- Floated positioning of texts in a row
- Flexbox for positioning texts in a row
- Using display: table-cell to position texts in a row
Unfortunately, when the first text exceeds the container's width, issues arise. Either the container or the child text becomes larger than intended, or the other two texts end up being cut off or hidden.
Any ideas on achieving a flexible layout as shown below? Both Case 1 (or any alternative) and Case 2 should work without knowing the width of the text.