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

CSS Grid

@swimshahriar

Desktop design screenshot for the Four card feature section coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

@rafaelmaiach

Posted

Hey Shariar, congrats on your solution.

As a feedback, check the font for the title, as it is still different from the challenge.

Talking about the question you made, you can take a look at CSS Grid. With CSS Grid, you can define some areas and place your boxes inside those areas, or you can use the grid layout (rows and columns) to place the boxes starting from a specific row/column. This way you will be able to position the boxes and create that challenge effect.

For example:

.card-div {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    grid-template-columns: repeat(3, 1fr);
}

.supervisor {
    grid-row: 2/4;
    grid-column: 1;
}

.team-builder {
   grid-row: 1/3;
   grid-column: 2;
}

.karma {
    grid-row: 3/5;
    grid-column: 2;
}

.calculator {
    grid-row: 2/4;
    grid-column: 3;
}
1

@swimshahriar

Posted

@rafaelmaiach Thank you for your feedback. I will try to fix it.

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