Break words between any two letters:
The wordBreak property specifies line breaking rules for non-CJK scripts.
Tip: CJK scripts are Chinese, Japanese and Korean ("CJK") scripts.
The wordBreak property is supported in all major browsers.
Return the wordBreak property:
Set the wordBreak property:
Value | Description |
---|---|
normal | Default value. Break words according to their usual rules |
break-all | Lines may break between any two letters |
keep-all | Breaks are prohibited between pairs of letters |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Default Value: | normal |
---|---|
Return Value: | A String, representing the word-break property of an element |
CSS Version | CSS3 |
CSS reference: word-break property