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

Single price grid with Css grid and flexbox

@hakylepremier

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

@bccpadge

Posted

Hello @hakylepremier. Congratulations on completing this challenge🎉!!

I have couple tips to improve your solution.

CSS 🎨:

  • Font size should never be in pixels because it is not accessible for everyone.

More info 📚:

Font size shouldn't be in pixels

  • When I switch to mobile responsiveness your single price grid component cuts off at the top. Also, you need more space on the bottom as well. To fix this issue you can add this code below.
body{
   padding-block: 10rem;
}
  • On desktop you can remove the padding altogether to make sure the component is in the center of website using a media query.

Padding block is a logical property in CSS which means top and bottom.

More info 📚:

CSS logical properties

Hopes this helps you and don't hesitate to reach out to me if you have any questions.

Marked as helpful

0

@hakylepremier

Posted

@bccpadge

Thanks for pointing out the mobile responsive issue. I probably wouldn't have caught it otherwise. I think it's because I test my mobile responsiveness using a taller screen that's why I didn't see the issue.

I will definitely take your suggestion on font size in my future projects.

PS: your solution has been tested and implemented in the live site now so that solves the issue.

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