Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change the color of strikeout??

Status
Not open for further replies.

Spain

Programmer
Jul 22, 2002
3
0
0
US
Hi all,

Is there anyway I can change the color of the strikeout line so I'll have a red line going through the black text?

I tried <s color=&quot;red&quot;> and that didn't work.

Thanks!

Spain
 
I don't have a clue? But you can make the text + line the same color, there are several ways:

<s style=&quot;color:red;&quot;>MY RED TEKST WITH RED LINE</s>

or

<font style=&quot;TEXT-DECORATION: line-through; color:red;&quot; >MY RED TEKST WITH RED LINE</font>

or

<s><font color=&quot;red&quot;>MY TEKST WITH RED LINE</font></s>

I think I didn't realy help you with this contribution, but I hope it helps a bit,
Erik
 
Heeeeeee, I got it !!

Suprised myself LOL !!

I think it's IE only, I tested in IE5.5 here (I can not test NN here)

Try this:

<div style=&quot;TEXT-DECORATION: line-through; color:red;&quot;><font style=&quot;color:black;&quot; >my BLACK tekst with RED line</font></div>

I think I helped you now :)

Erik



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top