How to change PNG color in CSS?
September 7, 2010 8:55 AM Subscribe
How can I change the color of a PNG (for example change a white object to a red object), while preserving the transparent background
in HTML/CSS -- perhaps using some sort of an overlay?
posted by Doofus Magoo to Computers & Internet (19 answers total) 1 user marked this as a favorite
For example, imagine a white circle smiley face with a transparent background; I want (via CSS) to change the eyes and mouth to a red smiley face with a transparent background.
Note that the important part is that the transparent background be preserved; otherwise it would be trivial to make the smiley transparent and set its background color.