Created
August 5, 2020 19:01
-
-
Save frikishaan/dcb7fb76f4a86360eb7cd23602786d22 to your computer and use it in GitHub Desktop.
How to truncate multiple line of text?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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