Skip to content

Instantly share code, notes, and snippets.

@marcusandre
Created January 10, 2019 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcusandre/5f9744a8b44e9d6fe007c0c57ac8d4b0 to your computer and use it in GitHub Desktop.
Save marcusandre/5f9744a8b44e9d6fe007c0c57ac8d4b0 to your computer and use it in GitHub Desktop.
Solve word break of long titles and headlines
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