The valid values of word-break
are as follows:
/* Keyword values */
word-break: normal;
word-break: break-all;
word-break: keep-all;
/* Global values */
word-break: inherit;
word-break: initial;
word-break: unset;
The
word-break
CSS property specifies whether or not the browser should insert line breaks wherever the text would otherwise overflow its content box.Chrome, Safari and other WebKit/Blink browsers also support the unofficial
break-word
value which is treated likeword-wrap: break-word
.
So could you use word-wrap: break-word
instead?