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
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
SVG sprite is the term you need
that's the one yes !
is this possible?
Not sure what your asking sorry
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
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.
ah got i thanks for the help i was wishing i could make it easir lol
You can try this method but with a image tag
I'm not at my PC atm
that's really cool idea !
i'll start using svg from now on