CSS3 word-break Property
Example
Break lines at appropriate points:
p.test {word-break:break-all;}
Try it »
Browser support
The numbers in the table indicate the first browser version that supports this property.
| property | |||||
|---|---|---|---|---|---|
| word-break | 4.0 | 5.5 | 15.0 | 3.1 | 15.0 |
Property definition and usage
The word-break property specifies line-breaking rules for non-CJK scripts.
**Tip:** CJK scripts are Chinese, Japanese, and Korean ("Chinese-Japanese-Korean") scripts.
| Default value: | normal |
|---|---|
| Inherited: | yes |
| Version: | CSS3 |
| JavaScript syntax: | object.style.wordBreak="break-all" |
Syntax
word-break: normal|break-all|keep-all;
| Value | Description |
|---|---|
| normal | Use the browser's default line-breaking rules. |
| break-all | Allow line breaks within words. |
| keep-all | Allows a break only at half-width spaces or hyphens. |