Responsive Recipe Page using CSS Flexbox and Media Queries

Please log in to post a comment
Log in with GitHubCommunity feedback
- @Kama-ds10
Feedback on your Solution
Semantic HTML:
You used semantic elements very well: <main>, <section>, <h1>–<h2>, <p>, <ul>, <ol>, and <table> all make sense and improve the document structure and accessibility. Great job!
Small suggestion: You could wrap your <hr> tags in <section>s if you want even cleaner grouping, but it's not a big issue.
Responsive Layout:
Your project looks clean on both mobile and desktop. The media queries and layout adjustments are well handled.
Nice touch removing the card background and shadow on mobile – it matches typical mobile-first design thinking!
Code Structure, Readability, and Reusability:
Your CSS is organized into clear sections (fonts, layout, titles, lists, etc.) — very easy to read.
You consistently use BEM-like class naming (recipe-card, recipe-content, etc.), which makes the CSS reusable and understandable.
For even better reusability, you could create some shared utility classes like .text-center, .mt-2, .mb-2 for margins and spacing in future projects.
Design Accuracy:
Your visual layout follows the design very closely: good typography, colors, spacing, and element sizing.
Small note: The border-radius is slightly missing on the small screen version for the image (you removed it completely, but you might still want a small radius like 0.5rem for better aesthetics).
Summary:
Overall, this is an excellent solution! Your structure, responsiveness, and code readability are very strong. Minor improvements like adding a table <caption> and fine-tuning mobile styles would make it even better.
Marked as helpful
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