Skip to content

Instantly share code, notes, and snippets.

@benkn
Created March 18, 2015 14:00
Show Gist options
  • Save benkn/cd67127bbe47763085f3 to your computer and use it in GitHub Desktop.
Save benkn/cd67127bbe47763085f3 to your computer and use it in GitHub Desktop.
/* Truncates value within a specified width and appends with ... */
.truncate {
/*width: 100%;*/ /*optionally set width here, but more useful not set */
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