Skip to content

Instantly share code, notes, and snippets.

@ascot21
Created July 2, 2013 19:16
Show Gist options
  • Save ascot21/5912215 to your computer and use it in GitHub Desktop.
Save ascot21/5912215 to your computer and use it in GitHub Desktop.
Truncating text with CSS
.message {
@include span-columns(12);
font-size: 85%;
overflow : hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment