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 feature section

@robsongomes

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 sure if the shadow-box is correct.

Community feedback

@AGutierrezR

Posted

Hello there 👋. Good job on completing the challenge! I have some suggestions about your code that might interest you.

CSS and Styling:

  • Avoid using px for font-size, you could read this article to learn why. Letter spacing and line height must not be in px, use rem for all the font-related properties.

  • You could use grid-template-area to achieve the same result using grid-area

    .card_container {
    	display: grid;
    	grid-template-areas:
    		". team-builder ."
    		"supervisor team-builder calculator"
    	        "supervisor karma calculator"
    		". karma ."
    	gap: 1rem;
    	margin-top: 2.5rem;
    }
    
    

    And set the grid-area of each card using a modifier class or something similar

    .card--supervisor {
    	  grid-area: supervisor;
    }
    
    .card--team-builder {
    	  grid-area: team-builder;
    }
    
    .card--karma {
        grid-area: karma;
    }
    
    .card--calculator {
    		grid-area: calculator
    }
    
    

I hope you find this helpful 😁. Most importantly, your submitted solution is fantastic! Happy coding!

Marked as helpful

1
P

@EONRaider

Posted

Here's the correct value to use for the box-shadow property on the cards:

box-shadow: 0 15px 30px -11px rgba(131, 166, 210, 0.50);

Marked as helpful

0

@robsongomes

Posted

@EONRaider thanks. I've made the fix.

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