Design comparison
Community feedback
- @claire-caPosted almost 3 years ago
Hi Peter,
I think your issue is that on your .container you have set a fixed size for your grid-template-rows to 240px, so in the smaller screen sizes, the content of card one grows larger than that and that is why your content cuts off.
You could either change your grid-template-rows to 1fr or remove the grid-template-row completely and let the grid set the rows implicitly.
Well done on the rest of your solution - it looks good!
Marked as helpful1 - @VladimirBrscicPosted almost 3 years ago
Hi Peter, on <body> you may want to replace 'height' with 'min-height' instead. Furthermore on .container class you may want to remove 'grid-template-rows' property altogether because that is actually fixed height in working with grids. Happy coding.
Marked as helpful1
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