[html] Transparent image - background color

I'm wondering if it is possible to set a background color for transparent images? (only the image will have background color)

This question is related to html css

The answer is


If I understand you right, you can do this:

<img src="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 ;)