I know there are many css filters out there especially for webkit, but I can\'t find a solution for colorize a white (#FFFFFF) image. I\'ve tried some combination of the fil
I recently have the same question and I think this approach is worth sharing for future readers. Try this
filter: brightness(50%) sepia(100) saturate(100) hue-rotate(25deg);
Brightness will darken the image, sepia will make it a bit yellowish, saturate to increase the color, and lastly hue-rotate to change the color. It's not cross browser friendly though:
It's not supported on IE
On chrome, hue-rotate(25deg)
will make any image red, but you need
negative value in firefox e.g. hue-rotate(-25deg)
to make it red.
You can use this to target mozilla browsers:
https://css-tricks.com/snippets/css/css-hacks-targeting-firefox/
Here are some useful tips and tools that I've used when I work with images/icons using css:
color:#f00;
just like font colors.filter: brightness(0) invert();
on NON-hover state, and filter: brightness(1);
on hover state. Hovever this will still won't work on IE