Menu Samaritan's Purse

LINE-BREAK

The line-break property specifies the strictness of line-breaking rules applied within an element: especially how wrapping interacts with punctuation and symbols.

SYNTAX

CSS

line-break: value;

JS

object.style.lineBreak = "value";

VALUES

<'line-break'> = auto | loose | normal | strict | anywhere
auto

Automatically specified by the user agent.

loose

Breaks text using the least restrictive set of line-breaking rules.

normal

Breaks text using the most common set of line-breaking rules.

strict

Breaks text using the most stringent set of line-breaking rules.

anywhere

There is a soft wrap opportunity around every typographic character unit, including around any punctuation character or preserved white spaces, or in the middle of words, disregarding any prohibition against line breaks, even those introduced by characters with the GL, WJ, or ZWJ character class or mandated by the word-break property. The different wrapping opportunities must not be prioritized. Hyphenation is not applied.

INITIAL

auto

EXAMPLES

AUTO

LOOSE

NORMAL

STRICT

ANYWHERE

JS

INTERNAL

hyphens

overflow-wrap

word-break

word-wrap

EXTERNAL

World Wide Web Consortium (W3C)