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

Results summary component using html and css.

@Theboytoyin

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


My mistake is obvoius lol.

Community feedback

Account Deleted

It seems like you have issues to center something in the screen judging also from your previous solutions. For websites like this where you have a "card" in the center of the screen you can simply start from this html:

<body>
<div class="card">
...
</div>
</body>

Then with css:

body {
min-height: 100vh; /* make the height of your body at least 100vh which is the full screen height (or the viewport height - that's what vh means) */

display: flex;
justify-content: center; 
align-items: center;
}

This way your card will be at the center of the screen. Note the min-height: 100vh; . My guess is that the reason you can't center vertically is because of this.

Marked as helpful

0

@Theboytoyin

Posted

Thanks alot. tried it on my new solution, Worked well.@arkatsy

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