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

Responsive Recipe Page Challenge Solution

P
josip-h 90

@josip-h

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 most proud of sticking with my schedule for learning web development, seeing results, and completing the projects.

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

During this project, I encountered two small challenges which were easily solved by searching the web.

  • Changing the color of list markers (bullets, numbers, ...)
  • Targeting all children elements except the last one

Resources and examples can be found in the README file.

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

I would greatly appreciate any suggestions or comments.

Community feedback

boysers 60

@boysers

Posted

Hi, you can improve your "nutrition table" CSS as follows:

.nutrition__table {
  display: block;
  margin-top: 12px;

  tbody {
    display: block;
  }

  tbody > :not(:last-child) {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-white-coffee);
  }

  tbody > :last-child {
    padding-top: 12px;
  }

  tr {
    display: flex; /* Changed from block to flex */
  }

  td {
    display: inline-block;
    height: 24px;
    /* width: 115.5px; remove fixed width */
    flex: 1; /* Added flex 1 */
  }

  .tag {
    padding-left: 32px;
  }

  .value {
    margin-left: 16px;
  }
}

good work! 😉

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