3

Good Evening,

Is there a way to change the color of a png image (and still preserve the transparency) using html/css?

The new color can be anything in the rgb spectrum. The image in question is a vector drawing but I can't use SVG and the fill property.

  • 1
    You can do this with a CSS mask. I hope that addresses your question. – Viper Jun 18 '13 at 22:57
  • Like Viper said, use a mask.. By the way, how do you have a vector png!? – Frade Nov 20 '13 at 09:34
  • TRy using filters. Check this out: https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html#FilterFunction http://html5-demos.appspot.com/static/css/filters/index.html – Frade Nov 20 '13 at 09:42

0 Answers0