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

Howdy, Stranger!

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

Categories

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

danielm77danielm77 USAPosts: 72Member

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

Comments

  • stefsullstefsull PhoenixPosts: 1Member
    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.