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 main

Hlm19966 70

@Hlm19966

Desktop design screenshot for the Recipe page coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

P
Sayed Ali 80

@sydalwedaie

Posted

Hello.

You have nailed the essential components of this design. The typography, the content structure, and the overall design matches the provided template. Here are a couple of suggestions for taking it to the next level.

Consider using media queries to add responsiveness to your design. The easiest task you could do according to your current structure is to increase the paddings around the recipe component, like so:

@media screen and (min-width: 38.5rem) {
  body {
    padding: 128px 76px;
  }
}

This way, when the viewport hits 38.5rem (or 38.5*16=616px), the paddings increase to the specified values, making the solution closer to the design.

With regard to the semantic markup, there is generally more than one acceptable way to do things. In this challenge, I would say the whole recipe should go in a main tag. A header tag would have been appropriate if there was a navigation bar.

Finally, consider using Prettier. It's a fantastic plugin available in VS Code. It takes care of formatting your indentations, freeing you to concentrate on writing code. Try this video for a quick setup.

I hope it helps.

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