Skip to content

Instantly share code, notes, and snippets.

@steveosoule
Created November 1, 2012 21:45
Show Gist options
  • Save steveosoule/3996819 to your computer and use it in GitHub Desktop.
Save steveosoule/3996819 to your computer and use it in GitHub Desktop.
Line Break Handling
.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