Responsive Blog Preview Card using CSS grid

Solution retrospective
I'm most proud of how clean and responsive the final layout turned out using only HTML and CSS. I was able to implement modern techniques like Flexbox for alignment and the clamp() function for responsive typography without using media queries. Additionally, using BEM naming conventions kept my CSS organized and maintainable, which made the project feel more professional and scalable.
What challenges did you encounter, and how did you overcome them?One of the main challenges I encountered was making the web page responsive without relying on conventional CSS media queries. I wanted to maintain responsiveness while keeping the CSS lean and scalable.
To overcome this, I explored and implemented the CSS clamp() function for responsive typography and spacing. This allowed me to define flexible values that adapt based on the viewport width, effectively replacing the need for media queries in many cases. It was a learning curve at first, but it helped me understand how modern CSS features can simplify responsiveness in web design.
What specific areas of your project would you like help with?While I'm proud of the current implementation, there are a few areas I'd like guidance or feedback on to improve further:
Responsive Design Without Media Queries: I used the clamp() function to handle responsiveness, but I’m still exploring best practices for using it effectively across different elements like padding, margins, and container widths.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @thisisharsh7
Hey, this is solid work! 👏 Your use of clamp() for responsiveness shows you’re clearly thinking beyond the basics and exploring what modern CSS can really do. It's awesome how you've minimized reliance on media queries while still achieving a clean, responsive design — not an easy task!
Your layout looks polished, and your BEM approach definitely helps in keeping the CSS structured and scalable. One tip for refining your use of clamp(): it often works best when you define the values based on a logical progression across your layout — for example, aligning clamp() values for padding and font sizes to a consistent scale so your layout feels more cohesive as it resizes.
Also, if you ever need a hybrid approach, combining clamp() with a few strategic media queries (especially for layout shifts) can sometimes offer the best of both worlds without making the CSS heavy.
Keep pushing your skills like this — the foundation you're building is excellent!
Marked as helpful - @DaniloJesus21
Well done!
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