Allow long words to be able to break and wrap onto the next line:
The wordWrap property allows long words to be able to be broken and wrap onto the next line.
The wordWrap property is supported in all major browsers.
Return the wordWrap property:
Set the wordWrap property:
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 |
Default Value: | normal |
---|---|
Return Value: | A String, representing the word-wrap property of an element |
CSS Version | CSS3 |
CSS reference: word-wrap property