I can't change the color on the following characters:
<div style="font-size: 25px; color:red;">🔍</div>
<div style="font-size: 25px; color:red;">📣</div>
While some other Unicode characters accept a color property:
<div style="font-size: 25px; color:red;">⚙</div>
Is there a way to change color on the previous characters?
https://jsfiddle.net/cs5053ka/
On many systems, emoji characters like 🔍 and 📣 are drawn differently from regular characters. While symbols like %
are drawn by filling in a vector outline, emoji are often drawn using a full-color bitmap that doesn't respect your text color.
To change the color of an emoji character, you have a few options:
<img>
tag or CSS background image to display it.color
property works on them.text-shadow
hack to fill the emoji with a solid color.You can also use a variation selector to turn certain emoji into regular characters that can be recolored, but this doesn't work for 🔍 or 📣.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With