Created
January 6, 2018 10:35
-
-
Save shmdhussain/ed360c0cc3adc30adff185971afe4ec2 to your computer and use it in GitHub Desktop.
Ellipsis CSS -quick CSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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