Solved

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

Posted on 2012-03-14
1
159 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

0
Comment
Question by:-BLUE-
1 Comment
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 500 total points
Comment Utility
add

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

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now