/

HTML / CSS / JavaScript Tutorial

CSS Property: word-break

[this page | pdf | back links]

The CSS (CSS3) word-break property indicates the way in which words can be broken at line ends for scripts that are not Chinese, Japanese or Korean (“CJK”).

 

Valid property values (other than inherit and initial) are:

 

Value

Description

break-all

Breaks can occur between any two letters

keep-all

Breaks are prohibited between pairs of letters

normal

(default value). Words break at line ends according to usual rules

 

Default Value:

normal

JavaScript syntax:

e.g. object.style.wordBreak="keep-all"

Inherited:

Yes

Animatable:

No

 


NAVIGATION LINKS
Contents | Prev | Next | CSS Properties


Desktop view | Switch to Mobile