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

foi usado as tecnicas tradicionas de divs e no css o display flex

Riki013 20

@Riki013

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

hitmorecode 6,270

@hitmorecode

Posted

Nice well done, to place the card in the middle of the page add this to the body (see below)

  • Make it a habit of using min-height: 100vh; on the body. This is important for the responsiveness of the page
body {
    background-color: hsl(30, 38%, 92%);
    overflow: hidden;
    min-height: 100vh; /* add these three lines */
    display: grid;
    place-items: center;
}

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