Responsive Card Columns Layout with CSS Grid and Subgrid

Solution retrospective
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; }
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Levi Kuhaulua's solution.
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