Created
November 23, 2020 03:11
-
-
Save LevPewPew/7c4957f348f2567edebbc6b6e09dfdc8 to your computer and use it in GitHub Desktop.
easiest way to do ellipses after x number of lines
This file contains hidden or 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
// e.g. 2 lines: | |
some-class { | |
display: -webkit-box; | |
-webkit-line-clamp: 2; | |
-webkit-box-orient: vertical; | |
overflow: hidden; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment