/multi-line-truncate.css Secret
Created
December 16, 2022 19:14
Star
You must be signed in to star a gist
Multi-line Truncate
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
/*Apply "..." after 3 lines of text */ | |
.text-style-3lines { | |
display: -webkit-box; | |
overflow: hidden; | |
-webkit-line-clamp: 3; | |
-webkit-box-orient: vertical; | |
} | |
/*Apply "..." after 2 lines of text */ | |
.text-style-2lines { | |
display: -webkit-box; | |
overflow: hidden; | |
-webkit-line-clamp: 2; | |
-webkit-box-orient: vertical; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment