CSS3 word-break Property

Example

Breake words at an appropriate hyphenation point:

p.test {word-break:hyphenate;}


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The word-break property is not supported in any of the major browsers.


Definition and Usage

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="hyphenate"


Syntax

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

Value Description
normal Breaks non-CJK scripts according to their own rules
break-all Lines may break between any two characters for non-CJK scripts
hyphenate Words may be broken at an appropriate hyphenation point