Created
September 30, 2015 23:53
-
-
Save lumpysimon/5119658ee032c506ddc2 to your computer and use it in GitHub Desktop.
Bulletproof hyphenation using 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
.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
Source https://justmarkup.com/log/2015/07/31/dealing-with-long-words-in-css/