Menu Home

word-break

osbo.com | CSS | Properties | word-break

The word-break CSS property specifies soft wrap opportunities between letters.

Syntax

CSS

word-break: value;

JS

object.style.wordBreak = "value";

Values

<'word-break'> = normal | keep-all | break-all | break-word
normal

Words break according to their customary rules.

keep-all

Breaking is forbidden within "words".

break-all

Breaking is allowed within "words".

break-word

Same effect as word-break: normal and overflow-wrap: anywhere.

Initial

normal

Examples

normal

keep-all

break-all

break-word

JS

Internal

hyphens

line-break

overflow-wrap

word-wrap

External

World Wide Web Consortium (W3C)