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

Value Description
normal Lines may break only at allowed break points
none Lines may not break. Text that does not fit in the element, overflows it
unrestricted Lines may break between any two characters
suppress Line 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