Design comparison
SolutionDesign
Community feedback
- @IryDevPosted about 1 year ago
Hi @elic4vet, well done for completing your this challenge😁
If you want to correctly center your card at the center of your screen :
- You didn't use semantic HTML that can improve the accessibility of your website
- You can wrap the whole main content of your page in the
<main>
tag - Replace your
<div class="attribution">
by the semantic tag<footer>
- The footer tag contains information about the author, copyright, etc
- Give the body a min-height of 100vh
HTML :
<body> <main> card components etc... </main> </body>
CSS :
body{ min-height: 100vh; display: flex; align-items: center; justify-content: center; }
I hope you'll find this helpful, and your solution is really good 😄
Marked as helpful1
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