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

Responsive Card Columns Layout with CSS Grid and Subgrid

@LeviKuhaulua

Desktop design screenshot for the 3-column preview card component 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?

I am proud of being able to complete this challenge pretty quickly and also with getting more comfortable with CSS Grid and Subgrid.

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

I initially had the challenge with dealing the responsiveness of CSS Grid and Subgrid, when I finished the setup, I found that the card components didn't wrap. How I overcame that was to use the span keyword followed by the amount of rows created by the browser. See code below:

.columns__card {
  display: grid; 
  grid-template-rows: subgrid; 
  grid-row: span 4; 
}

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