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 with CSS Flexbox and Sass

Aayush Sood 1,175

@soodaayush

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


Any feedback would be appreciated.

Community feedback

Jane 1,040

@janegca

Posted

Hi WarBaddy,

I can't see your code but your HTML structure and use of Flexbox is very similar to my solution. I styled for the mobile layout first and then tweaked the flex layout for the desktop, basically just had to change the direction from column to row and set the width on the two outside cards and the middle wrapper to 30%, with the card widths all set to 22rem or so; this allowed things to shrink and grow fairly smoothly.

Hope that helps.

0

Aayush Sood 1,175

@soodaayush

Posted

@janegca Thanks for the feedback!

0
Web Frog 1,840

@MasterDev333

Posted

Great work @warbaddy. Desktop version, it's perfect. It would be great if you make it responsive. When it goes mobile please add this code to boxes div. flex-direction: column; Hope it helps. Happy coding :)

0

Aayush Sood 1,175

@soodaayush

Posted

@MasterDev333 Thanks for the feedback!

0

@axevldk

Posted

Hi, @WarBaddy ~ I have studied your work, and it's great on desktop. Here are some of my opinions ~

  1. Font sizes are too small compared to design.

  2. You used flex for this situation, but I hope you to try using grid. I think that would be easier to implement such cases.

  3. Also when screen becomes smaller, only card on left and right are getting smaller and this is not good. All 4 cards must have same width always. I think using grid can solve this issue.

Hope my words can help you even a bit. Happy coding ~ ✨

0

Aayush Sood 1,175

@soodaayush

Posted

@axevldk Thanks for the feedback but I don't understand why you would use grid for this. Flex is the perfect thing to use for this challenge.

0

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