Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 1 year ago

Recipe Landing Page with HTML & CSS

cha-minmin•20
@cha-minmin
A solution to the Recipe page challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

I tried to use semantic html elements as much as possible. I want to create a clear workflow that will make me more efficient.

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

I had trouble styling the list items. I initially set the list-style to inside causing the following lines to be bellow the bullets and not aligned. My final solution was setting it to outside and using margin and padding to achieve the effect I need. I initially thought of using flexbox for the nutrition section but I decided to try using the table element. I'm not that proficient in using advanced selectors so I used classes for the first and last items to set the styling. I was trying to achieve the exact pixels in the Figma file.

What specific areas of your project would you like help with?
  1. If list-style is set to inside, is there another way for the texts to be aligned? I tried the text-indent but it's not really achieving the look I want.

  2. How to select the first and last items in a table? Like in this challenge, I need to remove the bottom padding and border and tried last-child but it affects multiple cells.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on cha-minmin's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License