paint-brush
Text Truncation in CSS: Learn Single and Multiple Line Truncation with Easeby@briantreese
109 reads

Text Truncation in CSS: Learn Single and Multiple Line Truncation with Ease

by Brian TreeseFebruary 16th, 2024
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

With CSS we have the `text-overflow` property that we can use any time we want to truncate a single line of text. We can do this with a handful of properties and the webkit’s `preferences` property. Here we look at an example of how to use the text- overflow property to get multiple lines of text truncated.
featured image - Text Truncation in CSS: Learn Single and Multiple Line Truncation with Ease
Brian Treese HackerNoon profile picture
Brian Treese

Brian Treese

@briantreese

L O A D I N G
. . . comments & more!

About Author

Brian Treese HackerNoon profile picture
Brian Treese@briantreese

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite