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

Recipe page HTML and CSS only

D4WD•130
@devis4wd
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'm happy I achieved a good result without the help of Figma files. I was also able to style everything in order to guarantee a good responsiveness to the whole page, and I used % instead of fixed sizes in order to achieve this result. I also tried to comment and format my code in the best way possible to make it clear for other web developers. Next time I'd like to be more efficient with my code (less is more).

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

I really struggled to place the bottom line properly on the desktop view. I couldn't understand why the absolute positioning wasn't working properly, and in the end I solved it by assigning the position: relative property to the html tag instead of the .layout_container div. That solved the problem on this specific case. I struggled even more with a white bottom banner that kept appearing whenever I zoomed out. I thought the problem was related to a height:100% I had used, but the solution was easier: I set the background-color: var(--nutmeg) for the wrong container instead of ````....

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

Optimizing my code. Sometimes I still struggle with height:100% vs height: 100vh.

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 D4WD'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