CSS Word Wrap
The word-wrap
property in CSS specifies whether to break words that are longer than the container's width, ensuring they wrap onto the next line.
Basic Usage of the word-wrap
Property
The word-wrap
property can take two values:
word-wrap: normal;
: Default behavior, words longer than the container's width may overflow.word-wrap: break-word;
: Allows long words to be broken and wrapped onto the next line if they exceed the container's width.