text-decoration-thickness
Sets the thickness (stroke width) of the decoration lines. You can use standard units like pixels or percentages to make underlines thicker or thinner.
It is documented as part of the CSS Text Decoration specification.
Syntax
/* Usage Example */
a.bold-link {
text-decoration: underline;
/* Makes the underline 3px thick instead of the default 1px */
text-decoration-thickness: 3px;
}
/* Syntax */
text-decoration-thickness: auto;
text-decoration-thickness: from-font;
/* Global values */
text-decoration-thickness: inherit;
text-decoration-thickness: initial;
text-decoration-thickness: revert;
text-decoration-thickness: revert-layer;
text-decoration-thickness: unset;
text-decoration-thickness Browser support
Widely available
Since
2015 95% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.
89+
70+
12.1+
89+