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 - Responsive

eros77sc 100

@eros77sc

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 learned how to use pseudo-elements like ::marker and ::before to style list markers, and also how to style table borders that are larger than the table itself.

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

I found it challenging to get the correct element sizes. I tried converting between centimeters and pixels, and pixels to rem, but didn’t have much success, so I ended up visually adjusting the elements.

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

  • Although I found solutions for the table borders, if you have any tips on using just border, it would be great to make the code shorter (I think).
  • Using ::before for the list markers was a solution, but I couldn’t make the same font-size changes with ::marker. Any tips?
  • I reused code from other cards in the Frontend Mentor challenges to make this card appear centered vertically and horizontally, but vertically it is "fixed" at the top of the page, without showing the background. How can I fix this?
  • I’m open to any other tips on the code!

Community feedback

MikDra1 6,090

@MikDra1

Posted

If you want to center the card vertically here is my way of centering it:

.container {
display: grid;
place-items: center;
min-height: 100vh;
}

Hope you found this comment helpful 💗

Good job and keep going 😁😊😉

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