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

Responsive Recipe Page with CSS Flexbox & Grid

Md-Sadekur-Rahman•60
@Md-Sadekur-Rahman
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 most proud of how I made the recipe page fully responsive using CSS Grid and Flexbox. It adapts well to different screen sizes, from mobile to desktop, which improves user experience. I also focused on clean and structured code, making it easier to maintain. Additionally, I ensured good color contrast and readability, following accessibility guidelines to make the page more user-friendly.

What challenges did you encounter, and how did you overcome them?
  1. Responsive Design Adjustments Challenge: Ensuring that the layout looked good across different screen sizes, especially aligning elements properly. Solution: I used CSS Grid and Flexbox effectively and tested the design at multiple breakpoints to ensure it adapted well.

  2. Box Shadow Visibility Challenge: The box-shadow effect was too subtle, making it hard to notice. Solution: I experimented with different shadow values, adjusting opacity and spread until I achieved a better visual effect.

  3. Text Alignment in Nutrition Section Challenge: The nutrition values (e.g., "0g", "22g") were not aligning as expected. Solution: I identified that display: flex; justify-content: space-between; in the .nutrition div was pushing the values to the right. I adjusted the styling to ensure proper alignment.

  4. Learning HSL Color System Challenge: Understanding how HSL (Hue, Saturation, Lightness) works when defining colors. Solution: I experimented with different values and compared them with traditional hex codes to get a better grasp of HSL.

These challenges helped me improve my CSS skills and debugging approach. If I face similar issues in the future, I'll have a much quicker way to solve them. 😊

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

Responsive Design Improvements – While I’ve made the page adapt to different screen sizes, I’d love feedback on optimizing layouts for better readability on larger screens.

Accessibility Enhancements – I want to ensure my project meets WCAG standards, especially in terms of color contrast, font sizes, and keyboard navigation.

Code Optimization – I’d like guidance on best practices for writing cleaner, more efficient HTML & CSS to improve maintainability.

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 Md-Sadekur-Rahman'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