Design comparison
Solution retrospective
.
What challenges did you encounter, and how did you overcome them?The correctly sizing of the various items.
What specific areas of your project would you like help with?If there are some things that could have been done better I would like to hear and learn :) Thank you.
Community feedback
- @Alex-Archer-IPosted 6 months ago
Hi! Good work =)
I can give a couple suggestions. Don't use
vi
for.container
element - it'll be very thin on the mobile screens. Try this approach for responsive width:main { max-width: 40rem; width: 100%; }
In the last
ul
element - nutrition section - it is a bad approach to split names and values in differentli
cos it ruins semantic of this section. You can usetable
element here or put them both in oneli
and apply flex to it.Also I recommend you to use
rem
instead ofem
cos value ofrem
depends on the root element whileem
- on the parent element. It could lead to reducing of the sizes of nested elements. And try to userem
andem
on the fonts as well =)Hope that could help =) Good luck and happy coding =)
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