Submitted about 4 years agoA solution to the Single price grid component challenge
Responsive component using SASS and HTML
@Albertoflj

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!
Code
Please log in to post a comment
Log in with GitHubCommunity feedback
- @ringm
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!
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