Transparent image – background color

If I understand you right, you can do this:

<img src="https://stackoverflow.com/questions/14446312/image.png" style="background-color:red;" />

In fact, you can even apply a whole background-image to the image, resulting in two “layers” without the need for multi-background support in the browser 😉

Leave a Comment