/

HTML / CSS / JavaScript Tutorial

CSS Property: word-wrap

[this page | pdf | back links]

The CSS (CSS3) word-wrap property allows long words to be broken at line ends and to wrap onto the next line.

 

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

 

Value

Description

break-word

Otherwise unbreakable words can be broken

normal

(default value). Words can only be broken at allowed break points

 

Default Value:

normal

JavaScript syntax:

e.g. object.style.wordWrap="break-word"

Inherited:

Yes

Animatable:

No

 


NAVIGATION LINKS
Contents | Prev | Next | CSS Properties


Desktop view | Switch to Mobile