Design comparison
SolutionDesign
Solution retrospective
Feel free to give me some feedback!
The "testimonial grid section" challenge helped me a lot to try and make this grid work.
I guess the only question i have is, whenever adding icons, I've seen multiple ways of doing it:
- By creating a class for your icon, going in your css and then add it in css with
background-image: url("images/xxx.svg");
<img src="images/image.jpg"></img>
and edit it in css withimg { }
<button class="button" data-icon="icon">xxx</button>
.button[data-icon="shopping-cart"]::before {
content: " ";
background-image: url("images/icon-cart.svg");
width: 15px;
height: 16px;
}
which one is better to do and what's the difference
Community feedback
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