Skip to content

Instantly share code, notes, and snippets.

Last active December 12, 2017 18:28
  • Star 8 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Cross browser word-break, so long urls and "wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww" don't outgrow your containers.
.word-break {
-ms-word-break: break-all;
word-break: break-word;
word-wrap: break-word;
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
Copy link

line -ms-word-break: break-all; breaks each char of a word in IE11

Copy link

tomexx commented Nov 27, 2017

doesn't work in Firefox

Copy link

doesn't work in chrome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment