Design comparison
SolutionDesign
Solution retrospective
Hi! Is there any way to order all components of a grid to be in a column, without setting each one individually? Thank you in advance!
Community feedback
- @ringmPosted over 3 years ago
Hey! Amazing job, the site looks exactly like the design. Congatulations!
Regarding your question: if you define your grid to be 1 column wide, all the child elements of the grid will fit like you want.
.container { display: grid; grid-template-columns: 1fr; }
Keep up the good work!
0
Please log in to post a comment
Log in with GitHubJoin 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