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>
Answer from Obsidian Age on Stack OverflowSimply 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>
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>
I think you're using less-well-supported Unicode values, which don't always have glyphs for all the code points.
Try the following characters:
- โ (0x2610 in Unicode hexadecimal [HTML decimal:
☐]): an empty (unchecked) checkbox - (0x2611 [HTML decimal:
☑]): the checked version of the previous checkbox - โ (0x2713 [HTML decimal:
✓]) - (0x2714 [HTML decimal:
✔])
Edit: There seems to be some confusion about the first symbol here, โ / 0x2610. This is an empty (unchecked) checkbox, so if you see a box, that's the way it's supposed to look. It's the counterpart to / 0x2611, which is the checked version.
First off, you should realize that you don't actually need to use HTML entities โ as long as your HTML document's encoding is declared properly as UTF-8, you can simply copy/paste these symbols into your file/server-side script/JavaScript/whatever.
Having said that, here's the exhaustive list of all relevant UTF-8 characters / HTML entities related to this topic:
- โ (hex:
☐/ dec:☐): ballot box (empty, that's how it's supposed to be) - (hex:
☑/ dec:☑): ballot box with check - โ (hex:
☒/ dec:☒): ballot box with x - โ (hex:
✓/ dec:✓): check mark, equivalent to✓and✓in most browsers - (hex:
✔/ dec:✔): heavy check mark - โ (hex:
✗/ dec:✗): ballot x - โ (hex:
✘/ dec:✘): heavy ballot x - ๐ธ ( hex:
🗸/ dec🗸): light check mark (poorly supported as of 2017) - ( hex:
✅/ dec:✅): white heavy check mark (mixed support as of 2017) - ๐ด ( hex:
🗴/ dec:🗴): ballot script X (poorly supported as of 2017) - ๐ถ ( hex:
🗶/ dec:🗶): ballot bold script X (poorly supported as of 2017) - โฎฝ ( hex:
⮽/ dec:⮽): ballot box with light X (poorly supported as of 2017) - ๐ต ( hex:
🗵/ dec:🗵): ballot box with script X (poorly supported as of 2017) - ๐น ( hex:
🗹/ dec:🗹): ballot box with bold check (poorly supported as of 2017) - ๐ท ( hex:
🗷/ dec:🗷): ballot box with bold script X (poorly supported as of 2017)
Checking out web fonts for tick symbols? Here's a ready to use sample for the more common ones: AโBCโDโEFโGโH -- just copy/paste this into your webfont provider's sample text box and see which fonts support what tick symbols.