CSS3 text-wrapProperty


Example

Allow no line breaks:

p.test {text-wrap:none;}

Try it Yourself »

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

The text-wrap property is not supported by any major browser.


Property definition and usage instructions

The text-wrap property specifies the 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 break points.
none No wrapping. Text that cannot fit within the element will overflow.
unrestricted Wrap between any two characters.
suppress Collapse wrapping within the element. The browser only wraps when there are no other valid line break opportunities in the line.
other extensions