DotDragnet
May 22, 2012, 02:32:51 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: follow us on twitter @dotdragnet
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Style a strikethrough?  (Read 1163 times)
Ben
Hero Member
*****
Posts: 766


I didn't do it


View Profile Awards
« on: February 04, 2008, 12:40:06 AM »

Is it possible to style the "text-decoration: line-through" in the CSS? To change the colour or weight of the strikethrough?
Logged
Jeep Stone
Hero Member
*****
Posts: 908



View Profile WWW Awards
« Reply #1 on: February 04, 2008, 09:07:01 AM »

Not sure if you can style the strikethrough. One way around it might be to wrap a span around it, put a border on it and move it with margins?
Logged

Ben
Hero Member
*****
Posts: 766


I didn't do it


View Profile Awards
« Reply #2 on: February 04, 2008, 12:41:00 PM »

Hmm.. will give that a go, hadn't considered that.
Logged
suedenem
Sr. Member
****
Posts: 410



View Profile Awards
« Reply #3 on: February 04, 2008, 01:37:34 PM »

Bit kludgy but you can control the line colour by doing something similar to this.  Obviously use classes rather than inline styles - this is meant to be illustrative.

Code:
<p style="text-decoration: line-through; color: red;">
<span style="color: black">Black text with a red line through</span>.
</p>
Logged

So this SEO copywriter walks into a bar, grill, pub, public house, Irish bar, bartender, drinks, beer, wine, liquor...

Beware my weird, cross-dressing comment's; they are pretty standard examples of trolling.
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2006-2008, Simple Machines Valid XHTML 1.0! Valid CSS!