Skip to content

Instantly share code, notes, and snippets.

@iba-cmsteam
Last active April 19, 2017 14:04
Show Gist options
  • Save iba-cmsteam/e85d4a611c17a03a4b1ea2c2ced00b7d to your computer and use it in GitHub Desktop.
Save iba-cmsteam/e85d4a611c17a03a4b1ea2c2ced00b7d to your computer and use it in GitHub Desktop.
CSS.long words breaks
.dont-break-out {
/* These are technically the same, but use both */
overflow-wrap: break-word;
word-wrap: break-word;
-ms-word-break: break-all;
/* This is the dangerous one in WebKit, as it breaks things wherever */
word-break: break-all;
/* Instead use this non-standard one: */
word-break: break-word;
/* Adds a hyphen where the word breaks, if supported (No Blink) */
-ms-hyphens: auto;
-moz-hyphens: auto;
-webkit-hyphens: auto;
hyphens: auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment