How to style CSS strikethrough to have a different color from the rest of text?

I need to color the strikethrough to Red while keeping the text grey. Is it possible to do this using CSS?


  • stefsullstefsull Phoenix
    edited March 2014

    Yes. Create the markup so that there's a span inside your strike element. Then leave the gray on the strike and put the red on the - strike span { color: red; }

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion