I know that we can change the fill
color of an SVG path using CSS if/when the raw SVG is added to the HTML page.
However, I don't know if it is possible to change the fill
color if the SVG is referenced within an <img>
tag. - Is it possible? If so, how?
Example: This fill
example doesn't work because I am referencing the svg within an img
tag.
<html>
...
<style>
#foo{
fill: #ccc;
}
</style>
<body>
<img id="foo" src="myicon.svg" />
</body>
</html>