Product preview card component using CSS flexbox
Design comparison
Solution retrospective
1- Assuming the actual width and properties of elements was a bit challenging. 2- I am unsure whether I have written an efficient code or not. 3- There are couple of doubts about best practices and whether I am practicing them or not.
Community feedback
- @marianarainhaPosted almost 2 years ago
Hello Shraddha !
You should set hover and focus states for interactive elements, like the button, to change it's background color and the cursor, for exemple.
Marked as helpful0 - @suhaib52Posted almost 2 years ago
Your code is looking clean. It would be great if you use classes as compared to the ids in the html, because use of classes considered best practice as compared to the ids.
Marked as helpful0@Shraddha-V22Posted almost 2 years ago@suhaib52 Yes, I will remember that. thank you!
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