CSS text-wrap Property Reference

The CSS text-wrap property is a standard property in CSS Text. Review its formal syntax, computed behavior, and practical declarations.

CSS text-wrap Property Reference

The CSS text-wrap property is a standard property in CSS Text. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

text-wrap overview

The CSS text-wrap property is a standard property in CSS Text. Review its formal syntax, computed behavior, and practical declarations.

The computed value normally inherits from the parent element when no declaration wins the cascade.

Syntax and formal definition

text-wrap formal syntax
FieldValue
Formal syntax<'text-wrap-mode'> || <'text-wrap-style'>
Initial valuewrap
Applies totextAndBlockContainers
InheritedYes
Percentagestext-wrap-mode, text-wrap-style
Computed valuetext-wrap-mode, text-wrap-style
Animation typetext-wrap-mode, text-wrap-style
Mediavisual
Specification groupCSS Text
StatusStandard

Practical examples

These declarations demonstrate valid ways to set text-wrap. The initial and inherit global keywords remain available even when a property-specific value is preferable.

text-wrap live example
CSS .reset-example { text-wrap: initial; } .inherit-example { text-wrap: inherit; } @supports (text-wrap: initial) { .supported { text-wrap: initial; } }

Description

The CSS text-wrap property is a standard property in CSS Text. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: text-wrap
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies