Design comparison
Solution retrospective
- Using new selectors like
tr:not(:last-child)
- Using
rem
for padding and margin - Using media query for the mobile size
For the mobile size, I wanted to let the image take the whole width of the screen while keeping other content of the main container with padding.
I used padding for the whole container then negative margin for the image.
What specific areas of your project would you like help with?I don't know why the font of the list markers is different from the list font. I tried to apply the font again to the marker itself, but still different!
Community feedback
- @Rgeb1Posted 3 months ago
You did a great job overall, and the design came out really well! One small suggestion is to consider consolidating some of your CSS rules to avoid repeating code. For example, .ingredients and .instructions share similar styles and could be combined into one rule with a comma (e.g., .ingredients, .instructions { /* styles */ }). There are a few other similar cases to check as well. Other than that, great work!
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