Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Four card feature with Flexbox

Hum Bruno 230

@humbruno

Desktop design screenshot for the Four card feature section coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


My approach was to create 3 divs which acted as columns on desktop, so that I could layout the cards in the way that they are supposed to be in the design

<section class="features">
  <div class="column1"></div>
  <div class="column2"></div>
  <div class="column3"></div>
</section>

But I can't help but feel that there must but a different approach to this that would allow for more scalability in terms of number of cards.

It also limited the tablet layout, as I initially wanted to display 2 cards per row, but this column layout didn't allow for it. Would love to hear your suggestions on how to have all 4 cards in a single container and achieve the intended desktop layout.

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

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