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 with Grid

@Justlana13th

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


this challenge is quite confusing for me. im unsure about the responsive design, but i think that's okay

Community feedback

@Azikenp

Posted

Hi @Justlana13th. You did really great on your design, everything looks nice but your card isn't really centered on your screen. You can achieve this effect using flexbox. Set body tag to ("display:flex;" , "align-items:center;" , "justify-content:center;" , "min-height:100vh;") and you should be good to go.

Marked as helpful

1

@Justlana13th

Posted

Hello @Azikenp, your feedback is really helpful for me, really appreciate it, thankyou so much

0

@ondickson

Posted

Hi @Justlana13th 👋, good job for completing this challenge and welcome to the Frontend Mentor Community! 🎉

  1. You should change your background-color to the figma design

background-color: hsl(204, 43%, 93%);

  1. To make your card component centered. Add this code to the body.
body {
    font-family: 'Karla', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}```

Marked as helpful

1

@Justlana13th

Posted

Hi @ondickson, thankyou very much for the correction, really appreciate it. just updated the code and right now the component is already in a center

1

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