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 with css Grid

@Divadovitch

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?

Having succeeded in respecting the requested layout using css grid, use the pseudo element ::before to add a graphic element to the cards.

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

respecting the positioning of the cards in the grid was not easy at first, but after various readings on the subject I was finally able to find a solution. I initially used a data attribute named [color=""] to apply a specific color to the cards, but an error message "Attribute "color" not allowed on element "div" at this point. " appeared when rendering the project, so I had to adapt the code to correct this problem.

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

Knowing the right way of using data attributes for css purpose and if creating a made up data attribute is considered bad practice.

Community feedback

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