CSS word-wrap
property as the name suggests, is used to break the long words and wrap onto the next line according to
the width available. It can prevent overflow of text when a string is too long to fit in the containing box.
Value | Description |
---|---|
normal | It is the default value. It break line only at allowed break points. It doesn't break words in between. |
break-word | It allows long words to be broken according to space available. |
initial | It sets this property to its default value. |
inherit | It inherits property from its parent element. |
This paragraph contains a very long word: thisisaveryveryveryveryveryverylongword. The long word will break and wrap to the next line.
This paragraph contains a very long word: thisisaveryveryveryveryveryverylongword. The long word will break and wrap to the next line.
In this paragraph, there is a very long word: iamsooooooooooooooooooooooooooooooolongggggggggggggggg.The long word will break and wrap to the next line.
word-wrap |
Follow Us: