Quantcast
Channel: CSS strikethrough different color from text? - Stack Overflow
Viewing all articles
Browse latest Browse all 18

Answer by Mig82 for CSS strikethrough different color from text?

$
0
0

In 2025 the simplest answer to this is to use the CSS3 property text-decoration-color See here.

For example:

.my-colored-strike-through {  text-decoration: line-through;  -webkit-text-decoration-color: red; /* Safari */    text-decoration-color: red;}

Viewing all articles
Browse latest Browse all 18

Latest Images

Trending Articles



Latest Images