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

Stats preview card component

Tom 245

@tttinh

Desktop design screenshot for the Stats preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hello everyone,

Hope you have a good day. I would like to receive any feedback or comment to help me improve my skills.

Thanks so much.

Community feedback

mvrius 260

@mvrius4

Posted

Hi Tom,

After I take a look at your code, I can give you an advice to center things more easier, an this trick help you to fix the footer.

.center-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

This code can be switched with

body {
   display:grid;
   place-items:center;
   min-height: 100vh;
}

Also, you put the image last, but it will be more easy if you put the image first, and you use the row-reverse property of flexbox. But your method it's not wrong.

Congrats with this challenge and good luck!

Marked as helpful

0

Tom 245

@tttinh

Posted

Hi @MariusZMR69,

Thanks for your kind reply. I will modify the code following your instructions.

Wish you have a good day.

Best regards.

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