Skip to content

Instantly share code, notes, and snippets.

@tevashov
Created March 15, 2013 19:34
Show Gist options
  • Select an option

  • Save tevashov/5172456 to your computer and use it in GitHub Desktop.

Select an option

Save tevashov/5172456 to your computer and use it in GitHub Desktop.
Long strings truncation
.break {
-ms-word-break: break-all;
word-break: break-all;
word-break: break-word;
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
}
.ellipsis {
width: 250px;
white-space: nowrap;
overflow: hidden;
-ms-text-overflow: ellipsis; /* Required for IE8 */
-o-text-overflow: ellipsis; /* Required for Opera */
text-overflow: ellipsis;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment