Design comparison
SolutionDesign
Solution retrospective
What is the best way to create beautiful SVG backgrounds without hacks?
Community feedback
- @FocusCookiePosted about 3 years ago
On the .card-icon class you could also use
background-image:url(...pathToSvgFile); background-position: x y; background-repeat: no-repeat;
If you do it like this you need to give the class a height or a margin-top otherwise the height will be 0 because the div does not need the img in the inside anymore.
Marked as helpful1
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