HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

word-wrap

Description

The word-wrap property for CSS 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

word-wrap: value;

JS

object.style.wordWrap = "value";

Values

<'word-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

1 · anywhere

2 · break-word

3 · normal

4 · JS