Design comparison
SolutionDesign
Solution retrospective
Is there a better css property to position the box.
Community feedback
- @stijnmeershoekPosted over 2 years ago
what you did in your sulution so position absolute on your
.container
with top 50% left 50% is perfectly fine, but yes there are other options like using Flexbox on the.app
like below:.app { display: flex; justify-content: center; align-items: center; }
or with CSS Grid
.app { display: grid; place-items: center; }
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