The text-underline-offset
CSS property sets the offset distance of an underline text decoration line (applied using text-decoration
) from its original position.
text-underline-offset
is not part of the text-decoration
shorthand. While an element can have multiple text-decoration
lines, text-underline-offset
only impacts underlining, and not other possible line decoration options such as overline
or line-through
.