Created
September 28, 2015 07:08
-
-
Save likerRr/c24faea9a9325630c210 to your computer and use it in GitHub Desktop.
Right way to hyphenate long words in CSS
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
// https://justmarkup.com/log/2015/07/31/dealing-with-long-words-in-css/ | |
.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