Created
October 9, 2015 07:49
-
-
Save jesusoterogomez/06192b9e56c5a4c0c84b to your computer and use it in GitHub Desktop.
CSS Cross Browser Solution for Word Wrapping in Fluid Width Containers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Source & Documentation: https://kenneth.io/blog/2012/03/04/word-wrapping-hypernation-using-css/