We help IT Professionals succeed at work.

Modify CSS to change <del> and <ins> tags?

-BLUE-
-BLUE- asked
on
Medium Priority
232 Views
Last Modified: 2012-03-15
Is there any way I can modify the CSS here so that the <del> and <ins> tags can have different font attributes without modifying the html/php scripts?  The CSS makes the font green but I would like the <del> which gets crossed out to be red if possible.

Thank you.
#featured-products .amount 
{
color:#008000; font-weight: normal; 
font-size:1.5em; 
display:block;
clear:both;
}

Open in new window

<span class="price">
<del><span class="amount">$7.00</span></del>
<ins> <span class="amount">$5.25</span></ins>
</span>

Open in new window

Comment
Watch Question

CERTIFIED EXPERT
Commented:
add

#featured-products del .amount
{
color:red;
font-weight: normal;
font-size:1.5em;
display:block;
clear:both;
}