Design comparison
SolutionDesign
Solution retrospective
I feel sick to deal with svg image... Once I use <img> tag then I can't change the color by fill property... However, when I use <svg> tag then I can't scale the image by width/ height property...
Also, I want like to build something with react :) Anyone have some suggestion for me? Thank you!
Community feedback
- @rfilenkoPosted over 4 years ago
Hey, sometimes svg's can be tricky :). Setting viewBox attribute helps to define the position and dimension of svg. Invest your time into studying basics and how to properl use them. First learn basics of js, then move to react.
Cheers, Roman
0
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