This question has already been answered:
How can (if at all possible) change the color of the image using css? For example, there is a black icon, it needs to be made, say, red. Is this possible at all?
This question has already been answered:
How can (if at all possible) change the color of the image using css? For example, there is a black icon, it needs to be made, say, red. Is this possible at all?
A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .
div { width: 200px; height: 200px; background-image: url("http://lorempixel.com/output/food-qg-200-200-5.jpg"); background-color: red; background-blend-mode: multiply; } <div> </div> The background-blend-mode property has a lot of options, almost for every taste and color. https://css-tricks.com/basics-css-blend-modes/
The only negative is the complete absence of IE and Microsoft Edge. http://caniuse.com/#feat=css-backgroundblendmode
Usually, in order to stylize icons use Font icons or SVG , if the icon is irreplaceable then any svg editor, for example, inkscape can vectorize (convert to svg) your icon, and already in svg you can upload it to your website. Here is a video where you can clearly see how to do it.
Source: https://ru.stackoverflow.com/questions/596228/
All Articles