Skip to content

Instantly share code, notes, and snippets.

@jiceb
Created April 16, 2013 13:30
Show Gist options
  • Save jiceb/5395896 to your computer and use it in GitHub Desktop.
Save jiceb/5395896 to your computer and use it in GitHub Desktop.
CSS Hyphen ( IE7+, FF 6+, iOS 4.2, Safari 5.1+ & Chrome 13+ )
/* http://blog.kenneth.io/blog/2012/03/04/word-wrapping-hypernation-using-css/ */
.hyphen {
word-wrap: break-word;
-ms-word-break: break-all;
word-break: break-all;
/* Non standard for webkit */
word-break: break-word;
-webkit-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