Style wordWrap Property

Style Object Reference Style Object


Allow long words to be able to break and wrap onto the next line:


Try it yourself »

Definition and Usage

The wordWrap property allows long words to be able to be broken and wrap onto the next line.

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The wordWrap property is supported in all major browsers.


Return the wordWrap property:

Set the wordWrap property:"normal|break-word|initial|inherit"

Property Values

Value Description
normal Break words only at allowed break points
break-word Allows unbreakable words to be broken
initial Sets this property to its default value. Read about initial
inherit Inherits this property from its parent element. Read about inherit

Technical Details

Default Value: normal
Return Value: A String, representing the word-wrap property of an element
CSS Version CSS3

Related Pages

CSS reference: word-wrap property

Style Object Reference Style Object


Color Picker