Text underline color

Hello!

How can i change the color of the line for Underlined Text? I want to do that for every type of underlined text, not just for Titles or links…

Thanks!

Hi Fabio,

Thank you for writing in, you can utilize the text-decoration-color CSS property.

If it is a headline you can add this to its Element CSS area

$el.x-text .x-text-content-text-primary {
text-decoration-color: red;
}

If it is a text element, you can add this to its Element CSS area

$el.x-text {
text-decoration-color: red;
}

If it is an inline text like anchor link, you can do:

<a href="#" style="text-decoration: red underline;">Lorem Ipsum</a>

CSS text-decoration-color Property

Hope it helps,
Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.