Truncate String with Ellipsis | CSS-Tricks - CSS-Tricks

PHOTO EMBED

Thu Jun 09 2022 12:21:14 GMT+0000 (UTC)

Saved by @saranraj #css

.truncate {
  width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
content_copyCOPY

https://css-tricks.com/snippets/css/truncate-string-with-ellipsis/