Created
January 10, 2019 07:29
-
-
Save marcusandre/5f9744a8b44e9d6fe007c0c57ac8d4b0 to your computer and use it in GitHub Desktop.
Solve word break of long titles and headlines
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
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6, | |
.word-wrap, | |
.word-break { | |
overflow-wrap: break-word; | |
word-wrap: break-word; | |
-ms-word-break: normal; | |
word-break: normal; | |
word-break: break-word; | |
-ms-hyphens: auto; | |
-moz-hyphens: auto; | |
-webkit-hyphens: auto; | |
hyphens: auto; | |
} | |
.ellipsis { | |
overflow: hidden; | |
white-space: nowrap; | |
text-overflow: ellipsis; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment