CSS3 word-breakProperty
Browser Support
The numbers in the table indicate the first browser version number that supports the property.
| Property | |||||
|---|---|---|---|---|---|
| word-break | 4.0 | 5.5 | 15.0 | 3.1 | 15.0 |
Attribute definition and usage instructions
The word-break property specifies line breaking rules for non-CJK scripts.
Tip:CJK scripts are Chinese, Japanese, and Korean ("CJK") 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 breaking within words. |
| keep-all | Line breaks can only occur at half-width spaces or hyphens. |