Skip to content

Instantly share code, notes, and snippets.

@frikishaan
Created August 5, 2020 19:01
Show Gist options
  • Save frikishaan/dcb7fb76f4a86360eb7cd23602786d22 to your computer and use it in GitHub Desktop.
Save frikishaan/dcb7fb76f4a86360eb7cd23602786d22 to your computer and use it in GitHub Desktop.
How to truncate multiple line of text?
.card-title{
-webkit-line-clamp: 2; // Max number of lines you want to show
overflow : hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment