mheavers
mheavers

Reputation: 30178

change color of svg images with css

I have an svg image on my page which I am including like this:

<img src="image.svg" class="arrow"/>

Upvotes: 5

Views: 6191

Answers (2)

freejosh
freejosh

Reputation: 11383

There's hue-rotate, but it's not really supported yet.

Upvotes: 2

Adam
Adam

Reputation: 115

You can't. If you're trying to make it a rollover image, create a new SVG image with the changed colour, then look at this code to use JavaScript to make it a rollover image.

If you're not using it as a rollover, then I can't do any more.

Upvotes: 0

Related Questions