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

Four Card Feature Section

tailwind-css
Mubaraka Kikonyogo•100
@mubarakik
A solution to the Four card feature section challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


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

The main challenge I faced was aligning the cards using CSS Grid to match the design layout. To improve my understanding, I practiced grid concepts using CSS Grid Garden, to learn how grid placement works.

Later in the project, I struggled with making the middle column the same width as the side columns. I tried several approaches but couldn’t get it right until I watched Kevin Powell’s YouTube video, where he attempted the same challenge using both Flexbox and Grid. That’s where I learned about the grid-auto-columns: 1fr property. I then looked for the css equivalent from the Tailwind Docs and applied it, auto-cols-fr, which solved the issue.

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

Currently none, but any feedback is welcome.

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 Mubaraka Kikonyogo'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