Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Recipe Page

@Gehad28

Desktop design screenshot for the Recipe page coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

  1. Using new selectors like tr:not(:last-child)
  2. Using rem for padding and margin
  3. Using media query for the mobile size

What challenges did you encounter, and how did you overcome them?

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

Rgeb1 110

@Rgeb1

Posted

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 helpful

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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