Solved

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

Posted on 2012-03-14
1
168 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
ID: 37723746
add

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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

730 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