questions about SVG

so i'm trying to learn about SVG and use them since i heard it's better than lots of things so i need little help
10 Replies
ABK | Muneer
ABK | Muneer3y ago
i saw kevin video where he puts the SVG in the end of the HTML then call it with id but i can't seem to find that now since the video is 4 years old and is there a way to use the fill command in svg that's been called as img ? <img src="/img/person.svg" > and change the fill of that svg without getting the code out of the pictures and put it as text svg
b1mind
b1mind3y ago
SVG sprite is the term you need
ABK | Muneer
ABK | Muneer3y ago
that's the one yes ! is this possible?
b1mind
b1mind3y ago
Not sure what your asking sorry
ABK | Muneer
ABK | Muneer3y ago
oh sorry let me explain it more when i use SVG as an img <img src="/img/pic.svg" > is it possible to change the fill of that img? like img{fill: white} while it's still an img or it's necessary to get it as a code to change the fill of the SVG
b1mind
b1mind3y ago
Not really no Your using it as an image now, I'm not sure if you could use custom props and fallbacks that way Def can't just assign the fill to it as a img though.
ABK | Muneer
ABK | Muneer3y ago
ah got i thanks for the help i was wishing i could make it easir lol
b1mind
b1mind3y ago
You can try this method but with a image tag I'm not at my PC atm
ABK | Muneer
ABK | Muneer3y ago
that's really cool idea ! i'll start using svg from now on
Want results from more Discord servers?
Add your server