July 21, 2020 10:19 pm GMT
Original Link: https://leonardofaria.net/2020/07/18/using-flexbox-and-text-ellipsis-together/
Using Flexbox and text ellipsis together
You can truncate a single line of text with an ellipsis (…) fairly easily with text-overflow
and a few friends. But, as you might expect, that truncation happens at the end of the line of text. What if you want to truncate content in the middle?
Leonardo Faria details good use cases for this, like in an operating system window listing files. The line of text is a file name and a file extension. When that line truncates, it … Read article “Using Flexbox and text ellipsis together”
The post Using Flexbox and text ellipsis together appeared first on CSS-Tricks.
You can support CSS-Tricks by being an MVP Supporter.
Original Link: https://leonardofaria.net/2020/07/18/using-flexbox-and-text-ellipsis-together/
Share this article:
Tweet
View Full Article