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

result summary component with SCSS and Handlebars.js

#sass/scss#handlebars
Fadhil Suheriβ€’ 100

@ifumikuah

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


playing with scss and handlebars templating

i think my SCSS is still messed up, suggestions about that are very welcome πŸ™

others suggestions are welcome too!

Community feedback

Rebecca Padgettβ€’ 1,680

@bccpadge

Posted

Hello @ifumikuah. Congratulations on completing this challenge!!!πŸŽ‰

To center your component in the middle of the page you can use Flexbox or CSS Grid on the <body>

Flexbox

body{
 display:flex;
 justify-content:center;
 align-items: center;
 min-height:100vh;
}

CSS Grid

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

Here is my solution to this challenge Result summary component

I hope you find this useful and don't hesitate to reach out if you have any questions

Marked as helpful

2
Daniel πŸ›Έβ€’ 40,900

@danielmrz-dev

Posted

Hello @ifumikuah!

Your project looks great!

I noticed that you used margin to place the card in the middle of the page. Here's a very efficient way to center the card:

  • Apply this to the body (in order to work properly, don't use position or margins):
body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

I hope it helps!

Other than that, great job!

Marked as helpful

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