When I set color:white;
or use the classes icon-light
or icon-white
, all font-awesome-icons turn white except for fa-star
which stubbornly remains yellow. I've tried various methods to override the CSS, including using !important
in inline-styling on the element, but the star stays yellow!
Why is this happening, and how can I make it white?
(I am using font-awesome 3.2.1 to support IE7)
Here is my markup:
<i class="icon-white icon-star" style="color:white;"></i>
Or as shown in the screenshot below:
<i class="icon-light icon-star" style="color:white !important;"></i>
Despite the inline-style rule supposedly overriding other rules, the star remains yellow.
What's interesting is that Chrome's debugger states that the star is white according to "Computed Styles," which clearly isn't the case.
I eventually solved this issue by renaming the class on my <i>
to white-star
and adding the following to my stylesheet:
.white-star:before{
content:"\f005";
}
To my surprise, the star turned white. While the problem is resolved, I'm still curious about why this solution worked. Any insights would be appreciated.