Submitted
How do I link an external SVG file if I want to change its color through CSS? I've tried using <img>
, <use xlink:href="..."></use>
and <use href="..."></use>
tags. The first option doesn't allow me to change its color dynamically, and the other two didn't render the SVG at all. I ended up bypassing this issue by copy-pasting the SVG source code from the external file all throughout my HTML document, which I wanted to avoid since it becomes difficult and more tedious to make changes to all copies.