CSS3 text-wrap Property


Example

Allow no line breaks:

p.test {text-wrap:none;}

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The text-wrap property is not supported in any of the major browsers.


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"

CSS Syntax

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

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



SHARE THIS PAGE

COLOR PICKER

colorpicker