Design comparison
SolutionDesign
Solution retrospective
What challenges did you encounter, and how did you overcome them?
I got one problem which I dont solved, dont know why I cant change color of svg graphic with 'fill' property.
Community feedback
- @oshudevPosted 4 months ago
Hello there 👋. Good job on completing the challenge!
About your question, you can't use fill property if the
svg
file is inside theimg
tag. What you can do is copy and paste the svg code inside your html. Alternatively you can usefilter
property to change the color. I found an article explaining how to do it, Swapping Fill Color on Image Tag SVGs (Using CSS Filters!).I hope you find it useful! 😄
Happy coding!
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