Design comparison
SolutionDesign
Solution retrospective
How to change the color of SVG, when hovered? I set the background image as SVG to a div and tried changing the fill and color in CSS, it didn't work.
Thank you
Community feedback
- @nasim67rejaPosted almost 3 years ago
fill will only work for inline svg. Use inline svg for more control.By using img tag or background you won't be able to change the color by fill property. Check this playlist
Marked as helpful1 - @optimusprime202Posted almost 3 years ago
Hey @karthik2265, Exactly right!
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord