Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 12 months ago

Responsive recipe-page using pure CSS and HTML

Csaba Hell•220
@hellcsaba
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 learnt how to use ::marker pseudo-element for styling list items and :not, :last-child pseudo-classes. During the development I gained experience using tables and customizing their style. At the end it was inconvinient to meet the requirements of responsiveness for mobile view because of the image of the recipe. Probably in my next project I will work with mobile-first workflow.

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

At the end it was inconvinient to meet the requirements of responsiveness for mobile view. The reason for that is the recipe-image in mobile view fills up the entire space till the end of the top part of the screen. I set a 2.4rem padding on the article which was perfect for the desktop view. However, in mobile view it's a problem for the image. I don't think I did a nice solution for the mobile view but I solved it by adding a wrapper div for the image and set padding for every section.

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

Is there a best practice for the recipe image's responsiveness? I mean mobile view full (top) screen and desktop view (with padding).

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 Csaba Hell'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

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