Skip to content

Instantly share code, notes, and snippets.

@snowman-repos
Last active July 12, 2017 21:34
Show Gist options
  • Save snowman-repos/3838120 to your computer and use it in GitHub Desktop.
Save snowman-repos/3838120 to your computer and use it in GitHub Desktop.
SASS: Word Wrap
// Word Wrapping
@mixin word-wrap() {
-ms-word-break: break-all;
word-break: break-all;
word-break: break-word;
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
}
.word-wrap {
@include mixin word-wrap;
}
@MichaelTontchev
Copy link

Why not use this? Seems like it does the job more correctly:

@mixin word-wrap($value) {
    word-wrap: $value;
    overflow-wrap: $value;
}

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