Skip to content

Instantly share code, notes, and snippets.

@JimBobSquarePants
Created August 14, 2012 12:57
Show Gist options
  • Save JimBobSquarePants/3349069 to your computer and use it in GitHub Desktop.
Save JimBobSquarePants/3349069 to your computer and use it in GitHub Desktop.
Cross browser wrapping css to contain long words.
.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;
/*Internet Explorer 5.5+*/
word-wrap: break-word;
/*new syntax*/
overflow-wrap: break-word;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment