Design comparison
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
- @danielmrz-devPosted 10 months ago
Hello Steve!
Your solution looks excellent!
I have just one suggestion:
- Use
main
to wrap the main content instead ofarticle
.
π 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 - Use
Please log in to post a comment
Log in with GitHubJoin 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