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

Responsive 3-Column Card Component with Flexbox

accessibility, bem, lighthouse
Abdul Subhan•1,600
@Esabdul
A solution to the 3-column preview card component 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 managed to make the layout fully responsive using only Flexbox and CSS media queries.

I also made use of clamp() for paragraph widths, which helped control text line length for better readability.

Next time, I would start earlier with planning intermediate breakpoints rather than fixing them later.

I'd also try to minimize repetitive media query logic and extract more utility classes or CSS variables.

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

One challenge was managing layout behavior across screen widths between 450px and 875px.

I wanted centered alignment during that range but left-aligned content on smaller and larger screens.

I overcame it by using layered media queries, separating layout direction and text alignment, and writing mobile-first logic.

I also learned to use max-width: clamp(...) and ch units to keep paragraphs legible on larger screens.

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

I would appreciate feedback on anything.

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 Abdul Subhan'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
  • Use cases

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