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-main

Steveβ€’ 160

@Stephen-Onyebuchi

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


I am so glad I completed this challenge. Initially, before I started it, I had this sentiment that already knew how to center a div very well but I was wrong. I struggled with it until I came up with the solution... body { min-height: 100vh; display: grid; place-content: center; } Please feel free to drop any other solution on how to center a div. I will highly appreciate it.

Community feedback

Daniel πŸ›Έβ€’ 44,230

@danielmrz-dev

Posted

Hello Steve!

Your solution looks excellent!

I have just one suggestion:

  • Use main to wrap the main content instead of article.

πŸ“Œ The tag article would make more sense if the card was part of a bigger website (in certainly would in real world), but here it is all we have on the screen.

This tag change does not impact your project visually and makes your HTML code more semantic, improving SEO optimization as well as the accessibility of your project.

I hope it helps!

Other than that, great job!

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