Menu
The overflow-wrap
property is used to determine whether or not lines with long words can break if they overflow the container.
Example:
div.ex {
overflow-wrap: break-word;
}
normal
Default value. Even if long words overflow the container, they will not break.
anywhere
Long words that overflow the container will break.
break-word
Long words that overflow the container will break.
initial
Sets the property to its default value.
inherit
Inherits this property’s value from its parent item.
Have a code example of overflow-wrap
? Submit a codepen.io demo and we'll showcase it here ↴