Skip to content

Instantly share code, notes, and snippets.

@voneff
Created April 19, 2017 08:44
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 voneff/19b0ec988b19d60a3496b89cf10b85b2 to your computer and use it in GitHub Desktop.
Save voneff/19b0ec988b19d60a3496b89cf10b85b2 to your computer and use it in GitHub Desktop.
Text flow: hyphenation / Silbentrennung
/*
* Active hyphenation in all texts
*
* Sources:
* https://css-tricks.com/almanac/properties/h/hyphenate/#comment-1596240
* https://justmarkup.com/log/2015/07/dealing-with-long-words-in-css/
*/
.body {
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