Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 2 years ago

Recipe page solution

Dêvid Teófilo•240
@devid8642
A solution to the Recipe page challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


My main question concerns the items on the lists for this project. Both the bullets in unordered lists and the numbers in ordered lists had specific colors, so to achieve this style I applied the color property to the <li> of the lists. And I placed the <li> texts inside <p> and changed the color of these texts to match the design. I made each of these <p> have an inline display and this made it impossible for me to add that small design spacing that exists between the text and the list marker.

I want to know if there is a better way to style the markers without complicating the text styling too much and in my case, if the way I did it was possible to add spacing without breaking the entire layout?

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 Dêvid Teófilo'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