text-wrap
Widely availableSince 202494% of users
The shorthand property for 'text-wrap-mode' and 'text-wrap-style'. It controls both whether text wraps and how the wrapping algorithm behaves.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since March 2024. Widely available since September 2026.
Newer parts of text-wrap
stableBaseline Oct 2024balanceBaseline May 2024, Widely Nov 2026nowrapBaseline Mar 2024, Widely Sept 2026wrapBaseline Mar 2024, Widely Sept 2026
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
wrap- Inherited
- Yes
- Applies to
- text and block containers
Quick example
h1 {
/* Short for nowrap and balanced styles */
text-wrap: balance;
}Values
text-wrap-modetext-wrap-styletext-wrap browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2024.Safe to use without fallbacks.
Usage94%of people can use this6% use a browser without it.
Browsers
114+
121+
17.4+
114+Mobile
114+Android
121+Android
17.4+iOS