Design comparison
SolutionDesign
Community feedback
- @shaihumohammedPosted 10 months ago
its good if you place the card in the center of the viewport.
body{ height: 100vh; width: 100vw; display: flex; justify-content: center; align-items: center; }
or
body{ position: relative; } .card{ position: absolute; top: 50%; width: 50%; transform: translate(-50%,-50%); }
:)
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