Responsive recipe page using HTML & CSS

Solution retrospective
Most Proud Of
I'm most proud of implementing the ordered list styling that maintains both semantic HTML structure and visual design requirements. Finding a way to keep the list accessible while having the text align properly with wrapped content was a satisfying challenge to solve.
Would Do Differently
If I were to start over, I would:
- Plan my CSS architecture more carefully before beginning, perhaps using a methodology like BEM or CUBE CSS.
- Create a comprehensive design system with CSS variables for spacing, typography, and colors at the start of the project.
- Take a more mobile-first approach to the responsive design.
- Use CSS Grid for the overall layout instead of relying heavily on padding and margins.
List Styling Alignment
The biggest challenge was styling the ordered and unordered lists to maintain proper text alignment when content wrapped to multiple lines.
How I overcame it: I learned about CSS counters and absolute positioning techniques. By using position: absolute
for the list markers and appropriate padding on the list items, I was able to achieve the desired visual effect while maintaining semantic HTML.
Horizontal Line Placement
Placing the <hr>
elements at the bottom of sections with padding was tricky.
How I overcame it: I used absolute positioning to place the horizontal rules exactly where needed:
section { position: relative; padding: 20px; } section hr { position: absolute; bottom: 0; left: 0; right: 0; margin: 0; }
Text Styling vs. Semantics
Balancing visual styling requirements with semantic HTML was sometimes challenging, especially when deciding between elements like <strong>
, <b>
, or styled <span>
elements.
How I overcame it: I researched the semantic meaning of various HTML elements and made decisions based on the actual content meaning rather than just visual appearance.
What specific areas of your project would you like help with? Areas I'd Like Help With-
Responsive Design Feedback - I'd appreciate input on how my layout adapts to different screen sizes and if there are better practices I could implement.
-
CSS Organization - I'm interested in learning better ways to organize my CSS for maintainability as projects grow larger.
-
Performance Optimization - Are there any ways I could optimize my HTML/CSS for better performance?
-
Accessibility Review - I've focused on semantic HTML, but I'd like feedback on other accessibility aspects I might have missed.
-
Browser Compatibility - I'd like to ensure my solution works across all modern browsers and gracefully degrades in older ones.
Please log in to post a comment
Log in with GitHubCommunity feedback
- P@CodexLoop
Responsive Design: The layout adapts well, but consider adding a mobile-first approach and testing for smaller devices to ensure the text and images scale smoothly. Using media queries might enhance this.
CSS Organization: The design is clean, but consider using a CSS methodology like BEM for better scalability. You could also look into using CSS variables for colors and spacing.
Performance & Accessibility: For performance, minimize CSS and JavaScript files, and ensure all images are optimized. For accessibility, add alt text for images and ensure your forms are labeled properly.
Browser Compatibility: It looks great in modern browsers, but check older ones (like IE11) for compatibility issues. Tools like Autoprefixer can help with that.
You’ve made solid progress! Keep refining these areas for even better performance and scalability.
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