CSS overflow-wrap Property
When the original string is too long to fit, the overflow-wrap property in CSS specifies that the browser may break lines of text inside any targeted element to prevent overflow. This property was previously known as word-wrap, and while it is still supported by some browsers, it was renamed overflow-wrap in a CSS3 draft.
Syntax
Property Values
| Value | Description | 
|---|---|
| normal | Long words will not break, even if they exceed the container's capacity. This is the default setting. | 
| anywhere | Long words will break if they exceed the container's capacity. | 
| break-word | Long words will break if they exceed the container's capacity. | 
| 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 | 
|---|---|---|---|---|---|
| overflow-wrap | 23.0 | 49.0 | 6.1 | 18.0 | 12.1 |