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

@jacob-stone9554

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?

I am proud of the mobile-first approach I took when implementing this solution. If I were to do it differently next time, I would have put more effort into a) keeping my CSS file organized and b) the desktop and tablet styles.

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

One challenge I faced was customizing the markers for ordered and unordered lists. I didn't know that you could modify them using ul li::marker or ol li::marker, I read a few articles when I figured it out.

What specific areas of your project would you like help with?

I had trouble adjusting the height of the .recipe-card container for desktop and tablet views. I ended up putting a set margin on the top and bottom of the container. If anyone has a more elegant solution, please let me know.

Community feedback

@R3ygoski

Posted

Hello Jacob, congratulations on completing your project, it turned out very well.

Regarding your question about how to define the height of the card, I would like to start by saying that the way you did it is not wrong, you did it correctly. The only tip regarding this would be to use margin as shorthand, like this: margin: 150px 0, which would apply the margin to the top and bottom and 0 to the sides. Additionally, you could use padding on your main selector as well, which would create the correct spacing inside the main element, something like padding: 150px 0.

A suggestion: I recently saw that you mentioned in one of your solutions about using a separate CSS file from HTML, which was absolutely correct, and I would like to say that you can also use responsive design this way by creating, for example, a responsive.css file where all the responsive CSS would be, thus bringing more organization.

Now a tip: try to use more semantic tags in your project, as this not only helps with SEO but also with the accessibility of the page. I noticed that you used several <div> tags, some of which could be replaced by these semantic tags. I'll list a few:

  • <div class="recipe-card"> could be changed to a <main> since this tag contains the main content, but it could also be <article> as all the content here is self-explanatory and independent.
  • <div class="img-container"> could be changed to a <figure> since it contains only an image.
  • <div class="content-container"> could also be changed to an <article>, as the content is self-explanatory.

And again, congratulations on completing the project. If anything I said was not clear, please ask below and I will try to help in the best way possible.

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