Design comparison
SolutionDesign
Solution retrospective
How do I properly place the whole container on the center? I use margin: auto but it doesn't change the vertical margin so i use margin-top. I'm not sure if it is a proper way.
Community feedback
- @overviPosted about 1 year ago
You can apply the display: flex property to the <body> element and with using justify-content and align-items you can place container to the center remove any existing margins to center-align the container.
1 - @Caelus111Posted about 1 year ago
Hello! I hope you are doing well. -You can center the whole container using
justify-content : center;
align-items : center;
-these syntaxes work when using flex-box. I hope this helps!1
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