May 22, 2012, 02:33:18 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: follow us on twitter @dotdragnet
Home
Help
Search
Login
Register
DotDragnet
>
The Creative Side
>
On the web
>
Style a strikethrough?
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Style a strikethrough? (Read 1163 times)
Ben
Hero Member
Posts: 766
I didn't do it
Style a strikethrough?
«
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
Re: Style a strikethrough?
«
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
Jeepstone
Ben
Hero Member
Posts: 766
I didn't do it
Re: Style a strikethrough?
«
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
Re: Style a strikethrough?
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> General Discussion
=> Jee's Forum of Appalling Jokes
-----------------------------
The Creative Side
-----------------------------
=> Arty stuff
=> Photography
=> On the web
-----------------------------
The Tech Side
-----------------------------
=> Tech stuff
=> Hardware & Software
-----------------------------
The Business Side
-----------------------------
=> Anything business related
-----------------------------
The Practical Side
-----------------------------
=> Practical Advice
DotDragnet
>
The Creative Side
>
On the web
>
Style a strikethrough?
Loading...