[personal profile] fonetiks posting in [community profile] style_system
Hi all! I know how to change the colors of bold, italics, and underline in the Custom CSS area of the journal customization. (I am using Crisped, if this makes any difference.) I am wondering if there is a way to also change the color of a strike-through? I am using this for the rest:
i {color: #49d1ff;}
b {color: #ffffff;}
u {color: #f8d832;}

Any help would be so very appreciated! Thank you!

Date: 2014-05-04 12:35 am (UTC)
carene_waterman: An image of the Carina Nebula (Default)
From: [personal profile] carene_waterman
To answer your specific question:

strike, del {color: #color}

Now, some more information on how to get the look you want (most of the time):

For italic text, the source you're viewing (assuming you want these styles to apply to posts on your reading page, not just your own) should be using em tags most of the time, so saying:

i, em {color: #49d1ff} will get most of the italicized text in the colour you like.

Similarly add strong to your code for b tags, as it is more often the correct tag that is producing bold text.

For those wondering when to use which tag, it's complicated, but if the purpose of the tag is to emphasize the text, not just decorate it, use em or strong. And if the strikethrough means the item is deleted, use del. (And if you care at all about lower vision users, don't ever use strike or del on text you actually expect anyone to read--you know like items in a list of requests that are solved in the comments below.)

Date: 2014-05-06 05:43 pm (UTC)
doeeyedbecky: (Default)
From: [personal profile] doeeyedbecky
The code

s {color: #XXXXXX;}

Will also work for a strike-through code.

Profile

Dreamwidth style system discussion

February 2026

S M T W T F S
1234567
89 1011121314
15161718192021
22232425262728

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 11th, 2026 02:01 am
Powered by Dreamwidth Studios