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

Price Grid Component ft. Grid & Flexbox

hanny 170

@hannyfish

Desktop design screenshot for the Single price grid component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Had a whale of a time messing with Grid for this one and utilising inbuilt HTML like headers and lists. Wondering if anyone has any better ideas for not bloating out the code to display things using Flex - I didn't use padding as it messed with the widths too much and wasn't sure how to circumvent it.

Community feedback

@0xabdulkhaliq

Posted

Hello there 👋. Congratulations on successfully completing the challenge! 🎉

  • I have other recommendations regarding your code that I believe will be of great interest to you.

CSS 🎨:

  • Looks like the component has not been centered correctly. So let me share a css snippet, which helps you to easily center the component
body {
    display: grid;
}
  • Yeah that's all, I'm not kidding this single rule will makes magic. Now your component has been properly centered

.

I hope you find this helpful 😄 Above all, the solution you submitted is great !

Happy coding!

Marked as helpful

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