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

I used Flexbox for this project

@SujanPasa

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


If there is any other ways to make the alignment of the boxes simpler I would love to see them as well as I think the way I have done it is quite messy.

Community feedback

P
Ctrl+FJ 750

@FlorianJourde

Posted

Hey mate, nice job !

About your question, you can use display: grid instead of flex property on desktop. It's really not complicated once you did it one time, have a look :

#first-card {
  grid-area: first-card;
}

#second-card {
  grid-area: second-card;
}

#third-card {
  grid-area: third-card;
}

#fourth-card {
  grid-area: fourth-card;
}

...and then, the magic happen !

.wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr 1fr;
  grid-template-areas:
               ". second-card ."
      "first-card second-card fourth-card"
      "first-card third-card fourth-card"
               ". third-card .";
  }

You can custom your own grids on Layoutit. If you want to see this grid in application, here is my submission.

Hope this comment helped you ! Have a great day, keep up the good work !

Marked as helpful

0

@SujanPasa

Posted

@FlorianJourde Thank you I will definitely have a look into that.

1
P
Ctrl+FJ 750

@FlorianJourde

Posted

@SujanPasa You're welcome !

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