
Design comparison
SolutionDesign
Community feedback
- @Pogo182028Posted 28 days ago
To center an element you could try the following code in your container class that you are not using and remove the margin you have in your wrapper class:
.container { display: flex; height: 100dvh; justify-content: center; align-items: center; }
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