Created
December 6, 2018 09:30
-
-
Save jerrybendy/ff64a9f4a8b590f33ed05bf427f32986 to your computer and use it in GitHub Desktop.
CSS Multiple Line Overflow
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
div { | |
overflow : hidden; | |
text-overflow: ellipsis; | |
display: -webkit-box; | |
-webkit-line-clamp: 2; /* should be the line count limited */ | |
-webkit-box-orient: vertical; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment