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
Request path contains unescaped characters
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

results summary component using flex-box

Ali 50

@bluesky1992-web

Desktop design screenshot for the Results summary component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


it was challenging but i had good time working on it

Community feedback

hitmorecode 6,230

@hitmorecode

Posted

Nice well done. Just a few tips

  • If you use flexbox on the body with min height you can place the card in the middle of the page.
body {
  font-family: 'Hanken Grotesk', sans-serif;
  /* add these changes to the body, to place the card in the middle of the page */
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.parent-component {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
/*   margin-top: 5%; */ /* you can remove this line, flexbox will do the job */
}

Marked as helpful

1

Ali 50

@bluesky1992-web

Posted

Thanks a lot @hitmorecode for the feedback I will consider these changes certainly

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