Page 1 of 1

stupid css question ... (alt color strikethrough)

Posted: Thu Apr 22, 2004 9:31 am
by zick
i think i've seen this in other places ... when using strikethrough on text is there a style attrib that makes it an alternate color ... like for a price of something online in black, but struck-through with red and a sale price next to it. i don't know if this is css or if it's something else.

thanks for any feedback.

Posted: Thu Apr 22, 2004 9:57 am
by magicrobotmonkey
i think you'd have to layer a red strikethroug of just spaces over normal black text

Posted: Tue May 11, 2004 4:41 pm
by feyd

Code: Select all

s
{
	color: #0F0;
}

s span
{
	color:#F90;
}
---------
<s>test</s>
<s><span>test2</span></s>

Here is what you were asking for...

Posted: Thu May 13, 2004 9:56 am
by randomblink
I think this is what you were asking about... This maintains the coloring... It all has to do with the order of the color commands...

Good luck!

Code: Select all

<p>This is an example of the <span style="text-decoration: line-through; color: red;"><span style="color:black">strikethrough</span></span> method in css.</p>