CSS word-wrap Property


The overflow-wrap CSS property is only applicable to inline elements, and it specifies whether the browser should insert line breaks within an otherwise unbreakable string to prevent text from overflowing its line box.

The property was originally a nonstandard and unprefixed Microsoft extension called word-wrap, and it was implemented with the same name by most browsers. It was later renamed overflow-wrap, with word-wrap serving as an alias.

Syntax

Example

Preview

Property Values

Value Description
normal Break words only at the permitted break points. This is the default setting.
break-word Allows for the breaking of unbreakable words
initial This property is set to its default value.
inherit This property is inherited from its parent element.

Supported Browsers

Property Chrome Firefox Safari Edge / IE Opera
word-wrap 4.0 3.5 3.1 5.5 10.5