WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How do I change the color of strikethrough styling automatically? (3 posts)

  1. Torley
    Member
    Posted 7 years ago #

    Hi, I've seen some blogs where strikethrough text *also* appears in a faded gray. This doesn't seem like manual coloring but CSS magic to me.

    Earlier, I tried some Google searches for things like "strikethrough CSS class" but didn't find what I was looking for; perhaps I'm looking in the wrong direction.

    Similarly, I'm curious how to do this with bold and italic text.

    Can someone please tell me how? Your help is appreciated in advance!

  2. theiconoclast31
    Member
    Posted 7 years ago #

    Well, you'd just use something like:
    strike { color: #ccc; }
    and for bold, italics, you'd use i and b instead of strike.

  3. Torley
    Member
    Posted 7 years ago #

    Dang! That was a lot more easy and obvious than I thought... wonder why I couldn't find it. Gah!

    Thanks SO much, theiconoclast31. You've saved me! :D

Topic Closed

This topic has been closed to new replies.

About this Topic