Skip to content

Instantly share code, notes, and snippets.

@jesusoterogomez
Created October 9, 2015 07:49
Show Gist options
  • Save jesusoterogomez/06192b9e56c5a4c0c84b to your computer and use it in GitHub Desktop.
Save jesusoterogomez/06192b9e56c5a4c0c84b to your computer and use it in GitHub Desktop.
CSS Cross Browser Solution for Word Wrapping in Fluid Width Containers
/* Support: Internet Explorer 8+, Firefox 6+, iOS 4.2, Safari 5.1+ and Chrome 13+. */
/* Needed for old IE support, but words are broken up letter-by-letter */
-ms-word-break: break-all;
word-break: break-all;
/* Non standard for webkit */
word-break: break-word;
/* Modern CSS3 Hyphenation with locale support */
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
@jesusoterogomez
Copy link
Author

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