text-decoration-thickness
Widely availableSince 202197% of users
Sets the thickness (stroke width) of the decoration lines. You can use standard units like pixels or percentages to make underlines thicker or thinner.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since March 2021. Widely available since September 2023.
Newer parts of text-decoration-thickness
percentage valuesBaseline Mar 2024, Widely Sept 2026
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
auto- Inherited
- No
- Applies to
- all elements
- Animation type
- byComputedValueType
Quick example
a.bold-link {
text-decoration: underline;
/* Makes the underline 3px thick instead of the default 1px */
text-decoration-thickness: 3px;
}Values
autofrom-fonttext-decoration-thickness browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2021.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
89+
70+
12.1+
89+Mobile
89+Android
79+Android
12.2+iOS