Design comparison
Solution retrospective
I'm open to learn new ways to sort it out easier
What challenges did you encounter, and how did you overcome them?Targerting the number in the ol tag
What specific areas of your project would you like help with?Styling the page
Community feedback
- @R3ygoskiPosted 6 months ago
Hello Joseph, congratulations on completing another Frontend Mentor challenge.
Here are some CSS tips: I noticed you had difficulty coloring the numbers and bullets in the list. To do this, you can use the
::marker
pseudo-class. Here's a link explaining how it works: W3School - Marker.For your
<div class="nutrition">
elements, try usingwidth: 50%;
to make them more similar to the proposed design.In your form selector, try using
padding: 2rem
orpadding: 32px
to add more internal spacing to your card.Now, a tip regarding HTML: Let's start with the
<form>
tag. It's used for creating forms, but this card isn't a form. It would be more appropriate to replace the<form>
tag with<main>
because that's more accurate.Again, congratulations. If you have any questions, please comment below, and I'll do my best to help.
Marked as helpful0
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