Created
July 27, 2020 14:10
-
-
Save saqibameen/c5a80ae9913ccb109a034690b6bc8ae3 to your computer and use it in GitHub Desktop.
Limit no of characters inside your element
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
/* | |
* Limits the no of character in your element. | |
*/ | |
.trim-text { | |
white-space: nowrap; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
max-width: 75ch; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment