how to change unicode font colors
how to change unicode font colors
im trying to make a green checkmark with unicode.
<td><div style="color:green;">hi</div></td>
the code above produces green text: hi.
<td><div style="color:green;">✔</div></td>
the code above produces a black checkmark. for some reason the checkmark doesn't change its color, even though on this jsfiddle it does change its color to green. how can i fix this"?
1 Answer
1
Try using the font Segoe UI Symbol
.
Segoe UI Symbol
<td><div style="color:green; font-family:"Segoe UI Symbol">✔</div></td>
<td><div style="color:green; font-family:"Segoe UI Symbol">✔</div></td>
<td><div style="color:green; font-family:"Segoe UI Symbol"">✔</div></td>
https://bugzilla.mozilla.org/show_bug.cgi?id=1180157
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
the exact code works in jsfiddle, but for some reason not in the browser
– FrankK
Sep 1 at 13:20