Design comparison
SolutionDesign
Community feedback
- @sikulamartinPosted 3 months ago
body { display: flex; height: 100vh; justify-content: center; align-items: center; }
if you use this your wrapper will be automaticly in the middle of the screen, just be carefull when doing responsive with this, i advice you to put the height of the body back to auto, something like this: @media (max-width: 767.98px) { body{ height: auto; } }
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