Menu Riverview Church

OVERFLOW-WRAP

The overflow-wrap property specifies whether the user agent may break at otherwise disallowed points within a line to prevent overflow, when an otherwise-unbreakable string is too long to fit within the line box.

SYNTAX

CSS

overflow-wrap: value;

JS

object.style.overflowWrap = "value";

VALUES

<'overflow-wrap'> = normal | break-word | anywhere
normal

Lines may break only at allowed break points.

break-word

As for anywhere except soft wrap opportunities introduced by break-word are not considered when calculating min-content intrinsic sizes.

anywhere

An otherwise unbreakable sequence of characters may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line.

INITIAL

normal

EXAMPLES

NORMAL

BREAK-WORD

ANYWHERE

JS

INTERNAL

hyphens

line-break

word-break

word-wrap

EXTERNAL

World Wide Web Consortium (W3C)