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

Four Card Feature Section using flexbox

Karen Robertson•220
@indigorose
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 are you most proud of, and what would you do differently next time?

This challenge extended my knowledge of flexbox. The initial mobile or small screen styling kept the flexbox of the four cards simple at

.container {
  display: flex;
  flex-direction: column;
} 

When working on the desktop version, the middle cards were placed within a wrapper to maintain the column flex direction with the container moving the flex-direction: row; layout.

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

No major challenges for this solution as it was small with only four cards. If the layout was say the bento style or contained more cards, then it would be more of a challenge as I do not work with CCS grid often.

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

No particular areas at the moment, if a major refactor is required, it maybe in finding a solution to have the middle cards in the column format without the need for a separate 'wrapper' around them.

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 Karen Robertson'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

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