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

Responsive Card Section using Flexbox

mkhantk 120

@mkhantk

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


What are you most proud of, and what would you do differently next time?

I tried using frameworks and it works.

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

With the frameworks, images didn't load after deploy. I had to tweak a little in src to make them appear.

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

Any Suggestion, please? Thanks.

Community feedback

P

@Achigyus

Posted

Hi @mkhantk

I love your solution, great use of flexbox but I noticed that your design is not so responsive at screen sizes between 766px and 1000px. Making this section responsive using css grid is really easy, but if you want to use flexbox, you can create a media breakpoint between those two dimensions and add the following css to the main element:

main {
    flex-wrap: wrap;
    flex-direction: row;
}

Then change flex-direction of the second div in the main element to row:

    flex-direction: row;

Then change the flex order of the last div in the main element:

    order: -1;

This will improve the display between these screen sizes, or alternatively you could use css-grid.

I hope this helps. Great work on the solution.

Marked as helpful

1

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