Last active
September 25, 2015 17:32
-
-
Save xto3na/79604dfd512012064fda to your computer and use it in GitHub Desktop.
Text Overflow
This file contains hidden or 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
1) max-width: n px(%); word-wrap:break-word; text-overflow: ellipsis; white-space: none; | |
2) .hyphens { | |
-webkit-hyphens: auto; | |
-moz-hyphens: auto; | |
-ms-hyphens: auto; | |
hyphens: auto; | |
} | |
3) .word-break { | |
-ms-word-break: break-all; | |
word-break: break-all; | |
word-break: break-word; | |
} | |
4) .word-wrap { | |
word-wrap: break-word; | |
overflow-wrap: break-word; | |
} | |
5) .ellipsis { | |
overflow:hidden; | |
white-space: nowrap; | |
text-overflow: ellipsis; | |
} | |
6) .hyphenate { | |
-ms-word-break: break-all; | |
word-break: break-all; | |
word-break: break-word; | |
-webkit-hyphens: auto; | |
-moz-hyphens: auto; | |
hyphens: auto; | |
} | |
7) .hyphenate { | |
overflow-wrap: break-word; | |
word-wrap: break-word; | |
-webkit-hyphens: auto; | |
-ms-hyphens: auto; | |
-moz-hyphens: auto; | |
hyphens: auto; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment