Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Ellipsis CSS -quick CSS
@mixin ellipsis() {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
@mixin word-wrap() {
overflow-wrap: break-word;
word-wrap: break-word;
-ms-word-break: break-all;
word-break: break-word;
-ms-hyphens: auto;
-moz-hyphens: auto;
-webkit-hyphens: auto;
hyphens: auto;
}
//Reference:https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.