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-break112155.5153
break-word17967153
keep-all4412155.5319

We use cookies to improve your experience. Learn more in our Privacy policy.

×