Last active
December 15, 2015 22:59
-
-
Save klarstil/5336528 to your computer and use it in GitHub Desktop.
Truncate text using CSS
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
.is-truncate { | |
width: 250px; /** Adjust width to your needs */ | |
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