Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

CSS3 text-wrap Property

CSS3 text-wrap Property

Example

Allow no line breaks:

p.test {text-wrap:none;}

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

No major browser supports the text-wrap property.


Property definition and usage

The text-wrap property specifies text wrapping rules.

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

Syntax

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

Value Description
normal Wrap only at allowed line-break points.
none Do not wrap. Text that the element cannot fit will overflow.
unrestricted Wrap between any two characters.
suppress Compress line breaks in the element. The browser only wraps when there are no other valid line-break points in the line.