Last active
December 19, 2015 02:29
-
-
Save hungsu/5883696 to your computer and use it in GitHub Desktop.
Cross browser safe way to hyphenate words
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
-ms-word-break: break-all; | |
word-break: break-all; | |
// Non standard for webkit | |
word-break: break-word; | |
-webkit-hyphens: auto; | |
-moz-hyphens: auto; | |
hyphens: auto; | |
-webkit-hyphenate-before: 2; | |
-webkit-hyphenate-after: 3; | |
hyphenate-lines: 3; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment