Design comparison
SolutionDesign
Community feedback
- @fcojsanchez55Posted about 1 year ago
add in the body{ justify-content: center; and min-height: 100vh} and that will center your complete main on the screen..like this
body { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; }
0
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