Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Truncate text if it overflows and put ellipsis
.ellipsis {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis; // IE 6+, FF 7+, Op 11+, Saf 1.3+, Chr 1+
-o-text-overflow: ellipsis; // for Opera 9 & 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment