Last active
February 28, 2023 21:04
-
-
Save 2thecrow/9029bb9aba755705e41256b48a977b49 to your computer and use it in GitHub Desktop.
Css hiding for text 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
overflow: hidden; /* include for safety */ | |
display: -webkit-box; /* setting a block element */ | |
-webkit-box-orient: vertical; /* companion class */ | |
-webkit-line-clamp: 1; /* number of lines */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment