text-wrap property CSS Reference



Definition and Usage

The text-wrap property specifies line breaking rules for text.

Default value:normal
Inherited:yes
Version:CSS3
JavaScript syntax: object.style.textWrap="none"

Syntax

text-wrap: normal|none|unrestricted|suppress;

Values

ValueDescription
normalLines may break only at allowed break points
noneLines may not break. Text that does not fit in the element, overflows it
unrestrictedLines may break between any two characters
suppressLine breaking is suppressed within the element. The browser may only break lines within the element if there are no other valid break points in the line

Examples

 p.test {
    text-wrap:none;
}

Relative articles