We use cookies to improve your experience. Learn more in our Privacy policy.
word-break
The word-break CSS property sets whether line breaks appear wherever the text would otherwise overflow its content box.
Example
Initial value | normal |
Applies to | all elements |
Syntax
word-break: break-word;
Values
Use the default line break rule.
To prevent overflow, word breaks should be inserted between any two characters (excluding Chinese/Japanese/Korean text).
Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.
Has the same effect as word-break: normal and overflow-wrap: anywhere, regardless of the actual value of the overflow-wrap property.
Browser support
word-break | 1 | 12 | 15 | 5.5 | 15 | 3 |
break-word | 1 | 79 | 67 | 15 | 3 | |
keep-all | 44 | 12 | 15 | 5.5 | 31 | 9 |