CSS Text-Wrap Property

CSS 1

CSS 2

CSS 3

No No Yes

Description

This property specifies the mode for text wrapping.

Syntax

text-wrap: [value];

Possible values

  • normal - [Lines may break at allowed break points, as determined by the line-breaking rules in effect. Line breaking behaviour defined for the WJ, ZW, and GL line-breaking classes in [UAX14] must be honoured.]
  • unrestricted - [Lines may break between any two grapheme clusters. Line-breaking restrictions have no effect and hyphenation does not take place. Character shaping is performed on each side of the break as if the break had not occurred.]
  • none - [Lines may not break; text that does not fit within the block box overflows it.]
  • suppress - [Line breaking is suppressed within the element: the UA may only break within the element if there are no other valid break points in the line. If the text breaks, line-breaking restrictions are honoured as for 'normal'.]

Initial Value

Normal

Applies To

All elements

Inherited

Yes

Media

Visual

Example

footer {
  text-wrap: suppress;
}


View All CSS Properties