Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why am I unable to apply a color to ⚫ (&#x26ab)?

Tags:

html

css

firefox

I am unable to apply color to ⚫ (&#x26ab) in Firefox Quantum v60.1.0

I maintain a site that that uses this character with color, but it has been colorless after an upgrade to FF. Still works in IE11.

<b style="color:green;">&#x26ab</b>

Is this a bug in FF, or was this a bad practice from the beginning?

like image 452
Sterling Beason Avatar asked Jan 29 '26 15:01

Sterling Beason


1 Answers

Use &#x2B24; or some other instead. The one you have listed is an Emoji. You could also use a certain web font for this case.

<b style="color:green;">&#x2B24;&#x25CF;</b>
like image 133
Daniel A. White Avatar answered Feb 01 '26 08:02

Daniel A. White



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!