Created
July 1, 2020 21:13
-
-
Save ihorbond/7929affc5898b02ab8c1924c6fad3130 to your computer and use it in GitHub Desktop.
Clamp text with ellipsis after certain number of lines
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
.clamp { | |
display: -webkit-box; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
-webkit-box-orient: vertical; | |
-webkit-line-clamp: 2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment