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

Simple price grid

Peter 170

@PeterJan285

Desktop design screenshot for the Single price grid component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

P

@claire-ca

Posted

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 helpful

1

Peter 170

@PeterJan285

Posted

@claire-ca Thanks! You were right

0

@VladimirBrscic

Posted

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 helpful

1

Peter 170

@PeterJan285

Posted

@VladimirBrscic Thank you, its much better now

0

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