-
-
Save nocodesupplyco/94731f7f08e3e0b8dcd46021941c89a7 to your computer and use it in GitHub Desktop.
Single Line Truncate
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
/* Class must has a set width for this to work */ | |
.truncate { | |
width: 280px; | |
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