Word Wrap Property in CSS
The word-wrap Property
The word-wrap property allows long words to be broken and wrapped into the next line. It takes two values: normal and break-word. When the word is too long and the break-word property is applied to it, the browser will break that word in order to fit that word into the container.
Syntax:-
Its syntax is:-
< style >
element{
word-wrap: normal| break-word| initial| inherit;
}
< /style >
Further Explanation:-
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. |
inherit | Inherits this property from its parent element. |