Skip to content

Instantly share code, notes, and snippets.

@swistak
Last active September 28, 2015 07:49
Show Gist options
  • Save swistak/1c02b46fff002e48e395 to your computer and use it in GitHub Desktop.
Save swistak/1c02b46fff002e48e395 to your computer and use it in GitHub Desktop.
Usefull css classes
// Cross browser way to split very long words into multiple lines.
// From https://justmarkup.com/log/2015/07/31/dealing-with-long-words-in-css/?mc_cid=ce70bb0280&mc_eid=da0b57a173
.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