Design comparison
Solution retrospective
Figuring out how to use flexbox as a table, and I think my html was decently semantic.
What challenges did you encounter, and how did you overcome them?I had a tough time using table element but I ended up changing it to a flexbox instead since it was more responsive.
What specific areas of your project would you like help with?General feedback is welcomed, and advice on how to make my html more semantic if possible.
Community feedback
- @AlyaaRushdyPosted 7 months ago
try this if you're still interested in making the nutrition part a table
.section__table { width: 100%; border-collapse: collapse; } .section__table__tr td { width: 50%; height: 2.5rem; text-align: left; text-indent: 1.5rem; } .section__table__tr:not(:last-child) { border-bottom: 1px solid var(--Light-Grey); }
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