3 ms·
I am pretty sure you can change a lot of SVG properties trough CSS (use "currentColor" to change the color, for example). There was a discussion about http://s
by MayeulC 9y ago
I am pretty sure you can change a lot of SVG properties trough CSS (use "currentColor" to change the color, for example).
There was a discussion about http://slides.com/sdrasner/svg-can-do-that/ http://slides.com/sdrasner/svg-can-do-that/ some time ago, which gives some nice SVG styling examples.
- michaelbuckbee 9y agoSo the distinction is inlining SVGs vs referring to them like you would a png with an img src=filepath.svg|png in your HTML. It's handy to just treat them as you would images, but you lose some flexibility wrt being able to manipulate them via CSS b/c the browser now "thinks" of them like an image. This SO post has a clever workaround (with I'm sure more caveats wrt performance, etc) that will auto-inline your svgs that you need to manipulate so you can get a best of both worlds type situation going. https://stackoverflow.com/questions/24933430/img-src-svg-changing-the-fill-color https://stackoverflow.com/questions/24933430/img-src-svg-cha...