text-wrap-mode
Newly availableSince 202491% of users
A newer way to define if text should wrap to the next line or not. This is essentially a more modern version of the 'white-space' property for wrapping.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since October 2024. Widely available around April 2027.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
wrap- Inherited
- Yes
- Applies to
- text and block containers
- Animation type
- discrete
Quick example
.hero-title {
/* Forces the text to stay on a single line and never wrap */
text-wrap-mode: nowrap;
}Values
wrapnowraptext-wrap-mode browser support
BaselineNewly availableSince 2024 this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.Works in all modern browsers. May need a fallback for older browsers.
Usage91%of people can use this9% use a browser without it.
Browsers
130+
124+
17.4+
130+Mobile
130+Android
124+Android
17.4+iOS