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

Pricing card using HTML and CSS

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


I am unsure about the width and height of the pricing card challenge.

Community feedback

Hyron 5,870

@hyrongennike

Posted

Hi,

Nice job on the challenge

You can add the following to center the card on the page.

body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

You're also missing the viewport meta tag in head.
[https://www.geeksforgeeks.org/html-viewport-meta-tag-for-responsive-web-design/](https://www.geeksforgeeks.org/html-viewport-meta-tag-for-responsive-web-design/}


0

@Kwasako

Posted

@hyrongennike thank you so much I appreciate you taking the time to make this input. I will try it out.

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