0

How do I color the font awesome icon, especially the ones with white shade

For example I added the below css style to font awesome icon "fa fa-files-o", but that doesn't color the whole icon, only the outlines are showing in green.How can I ensure the whole icon has the colour?

.file-icon-green{
  color: #36931a;
  background-color: #3e935f;
}

<i class='fa fa-files-o file-icon-green'></i>
Paulie_D
  • 107,962
  • 13
  • 142
  • 161
serah
  • 2,057
  • 7
  • 36
  • 56

1 Answers1

0

FontAwesome works like a normal font does.

For example: if you tried to style a "O", only the circular part of it is coloured, and the "hole" remains whatever the background colour is.

I don't think there is a method for achieving what you want with FontAwesome, you would need to utilise a graphic instead.

Callum Kerr
  • 144
  • 1
  • 11