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 w/ Tailwind CSS

P
Vanessa 150

@petrihcour

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 custom CSS stylings to customize and override Tailwind CSS' default properties for lists. I did end up spending a lot of time on the Nutrition section trying to get the layout and spacing right. I didn't realize it wasn't centered in the middle on desktop and mobile. Next time, I will analyze the reference image better to not take up extra time.

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

I initially did not know how to customize the bullet points and numbers in Tailwind's default list. I did some googling and realized I can use li::before plus more to customize it myself.

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

I'd appreciate any feedback!

Community feedback

mofada 310

@mofada

Posted

Actually, tailwind css support list-style, you can watch this page setting-the-list-style-type

and then, Instructions.Beat the eggs: here, You can use :before Pseudo-classes to reduce nesting levels and simplifies HTML。 like this: <li class="before:content-['Total:'] before:text-stone-600 before:font-bold pl-4"> Approximately 10 minutes </li>

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