The text-wrap property specifies line breaking rules for text. This property is not supported by any major browsers at the moment of writing this tutorial.

Syntax:

selector { 

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

}

Values:

Following values are permitted for the text-wrap property:

  • normal; Lines may break only at allowed break points.
  • 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.
  • none; Lines may not break but text that does not fit in the element, overflows it.
  • initialinherit

Example

The text-wrap property example with all four values:

 

›› go to examples ››