Reputation: 45
I would like to make the x's red and the checkmarks green, but confused how to since it's a dingbat HTML code.
<li><b>HD</b> Available ✖</li>
<li><b>Commercial</b> Free ✖</li>
<li><b>Unlimited</b> Movies/TV Shows ✔</li>
<li><b>Cancel</b> Anytime ✔</li>
Upvotes: 2
Views: 7063
Reputation: 2024
Wrap them in a span and then color the span. Use a class name like checkmark
and x
.
See code snippet below:
.x{
color:red;
}
.checkmark{
color:green;
}
<ul>
<li><b>HD</b> Available <span class="x">✖</span></li>
<li><b>Commercial</b> Free <span class="x">✖</span></li>
<li><b>Unlimited</b> Movies/TV Shows <span class="checkmark">✔</span></li>
<li><b>Cancel</b> Anytime <span class="checkmark">✔</span></li>
</ul>
Upvotes: 1
Reputation: 670
You could put it in a span tag and add a class like
<li><b>HD</b> Available <span class="coloring">✖</span></li>
<li><b>Commercial</b> Free <span class="coloring">✖</span></li>
then set color in css like
.coloring {
color:red;
}
See sample: https://jsfiddle.net/axz16nqe/1/
Upvotes: 1
Reputation: 42364
Simply wrap each in a <span>
tag and give it a .check
or .cross
class. Then it's just a matter of adding the color
to each of the classes:
.cross {
color: #ff0000;
}
.check {
color: #00ff00;
}
<li><b>HD</b> Available <span class="cross">✖</span></li>
<li><b>Commercial</b> Free <span class="cross">✖</span></li>
<li><b>Unlimited</b> Movies/TV Shows <span class="check">✔</span></li>
<li><b>Cancel</b> Anytime <span class="check">✔</span></li>
Upvotes: 2