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 fature section using pure CSS

@Palmlight

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


I'm not yet so good with CSS grids. Feedbacks would be highly appreciated

Community feedback

@swaraj70

Posted

Grid gap will add some space between the 4 cards.

    /* DESKTOP-VIEW */
    @media (min-width: 1400px) {
        .card-container {
            display: grid;
            grid-gap: 30px;
            grid-template-areas: 
            ". a ." 
            "b a c"
            "b d c"
            ". d .";
            width: 80vw;
            margin: 0 auto;   
        }
    }
1

@swaraj70

Posted

Hey, the code looks great. Some space between the cards would make it look much better. Try adding grid-gap in .card-container in styles.css file. for example:

    /* GRID-GAP */
    grid-gap: 30px;
1

@Palmlight

Posted

@swaraj70 Thanks a lot. Would do that right now

0

@Palmlight

Posted

@swaraj70 i just did that but it's scattering my grid layout.

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