CSS3 word-break property

Examples

At the appropriate point line breaks:

p.test {word-break:break-all;}


Browser Support

Figures in the table represent the first browser to support the version number of the property.

Property
word-break 4.0 5.5 15.0 3.1 15.0

Attribute definitions and instructions

word-break attribute to specify line breaking rules for non-CJK scripts.

Tip: CJK scripts are Chinese, Japanese and Korean ( "CJK") script.

Defaults: normal
inherit: yes
version: CSS3
JavaScript syntax: object .style.wordBreak = "break-all"


grammar

word-break: normal|break-all|keep-all;

value description
normal Use the browser's default line-breaking rules.
break-all Allow line breaks within a word.
keep-all Only for the line half-width spaces or hyphens.