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 component

SecretariatVβ€’ 150

@SecretariatV

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

Rebecca Padgettβ€’ 1,760

@bccpadge

Posted

Hello @SecretariatV. Congratulations on completing this challenge!!!πŸŽ‰

I have few tips you might be interested in to improve your solution.

HTML πŸ“ƒ:

Example:

<body>
 <main></main>
 <footer></footer>
</body>

CSS 🎨:

  • Font size shouldn't be pixels because pixels are absolute unit and doesn't scale when users want to change their font size in their web browser setting.

More infoπŸ“š:

The code snippet below is updated to remove the width: 100vw and height: 100vh which are unnecessary CSS properties. The reason why you need to remove height:100h because on mobile devices component get cuts off. Adding padding: 4rem 0 give space on the top and bottom the component.

#root {
    display: flex;
    align-items: center;
    justify-content: center;
    /*width: 100vw; */
    /* height: 100vh; */
    background-color: #e5eff5;
    padding: 4rem 0;
}

Hope you find this useful and don't hesitate to reach out to me if you have any questions

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