Skip to content

Instantly share code, notes, and snippets.

@mchamplain
Created September 23, 2015 14:43
Show Gist options
  • Save mchamplain/bb7084e23e963dff0e3e to your computer and use it in GitHub Desktop.
Save mchamplain/bb7084e23e963dff0e3e to your computer and use it in GitHub Desktop.
CSS to hypenate long word when supported and word break on other
.hyphenate {
overflow-wrap: break-word;
word-wrap: break-word;
-webkit-hyphens: auto;
-ms-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