Skip to content

Instantly share code, notes, and snippets.

@justforuse
Created December 1, 2020 07:54
Show Gist options
  • Save justforuse/098c778b26be3c527128a55e19f5d8b9 to your computer and use it in GitHub Desktop.
Save justforuse/098c778b26be3c527128a55e19f5d8b9 to your computer and use it in GitHub Desktop.
text ellipsis
.truncate {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
// your style, like max-width: 100px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment