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

A recipe page for an Omelette.

Henry Ihenacho•40
@henrychris
A solution to the Recipe page challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


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

There were a lot of challenges.

  • I could not get the font to work right, despite using an import from Google Fonts, a @font-face rule & referring to the font files in the directory. I had to ask for help before I got them to display correctly.

  • I did not know how to move text away from bullets in a list. I Googled and found this solution:

    .list-text {
      position: relative;
      left: 1rem;
    }
    

    By surrounding text with a span, and assigning this class, the text would indent away from the bullet. However, this led to another issue because I had set list-style-position to inside. To fix this, I removed that rule and changed how I padded lists to this:

    ul,
    ol {
      display: block;
      padding-inline-start: 1.5rem;
    }
    

With this, the list text is formatted & indented correctly.

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

I used a single media query, kicking in once the screen width surpasses 568px. The reasoning is the rest of the code is responsive & I don't need many breakpoints (for multiple screen sizes).

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 Henry Ihenacho'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