Skip to content

Instantly share code, notes, and snippets.

@argyleink
Last active Dec 12, 2017
Embed
What would you like to do?
Cross browser word-break, so long urls and "wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww" don't outgrow your containers.
.word-break {
-ms-word-break: break-all;
word-break: break-word;
word-wrap: break-word;
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
}
@DarkFisk

This comment has been minimized.

Copy link

@DarkFisk DarkFisk commented Dec 30, 2016

line -ms-word-break: break-all; breaks each char of a word in IE11

@tomexx

This comment has been minimized.

Copy link

@tomexx tomexx commented Nov 27, 2017

doesn't work in Firefox

@MuthaheerKhan

This comment has been minimized.

Copy link

@MuthaheerKhan MuthaheerKhan commented Dec 12, 2017

doesn't work in chrome

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