Created
January 4, 2020 15:01
-
-
Save vyspiansky/ff72743c2478e73a70765a96a4629af6 to your computer and use it in GitHub Desktop.
CSS: truncate string with ellipsis
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
.truncate { | |
width: 250px; | |
white-space: nowrap; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment