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

@Otiro-John

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?

Just creating the design

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

I had so many challenges but I was not able to solve the main one

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

aligning items the right way

Community feedback

Bakhtiar 380

@b4khtiar

Posted

to layout the cards you can use grid on your "four-card-container", set it to 3 columns and 4 rows, then position your div to specific area, for example:

.four-card-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}

.one { 
    grid-area: 2 / 1 / 4 / 2; 
}
.two { 
    grid-area: 1 / 2 / 3 / 3; 
}
.three { 
    grid-area: 3 / 2 / 5 / 3; 
}
.four { 
    grid-area: 2 / 3 / 4 / 4; 
} 

This is one of many way you can use.

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