Design comparison
SolutionDesign
Community feedback
- @solvmanPosted 10 months ago
Congratulation! Your NFT card looks great! I would suggest you use semantic HTML more. For example, your first div
<div class="main-container">...</div>
could be replaced with a semantic version of
<main>...</main>
To place your card in the middle of the screen you could use:
* { margin: 0; } html, body { height: 100vh; } body { display: grid; place-content: center; }
If you use
display: grid,
content will stretch automatically, so you must setmax-width
and/ormin-width
or the exact container size. Otherwise, you could use Flexbox:* { margin: 0; } html, body { height: 100vh; } body { display: flex; align-items: center; justify-content: center; }
Marked as helpful0
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