Design comparison
SolutionDesign
Solution retrospective
Hi! How can we align the grid in center without using margin property just like we can do in flexbox I tried to do justify-content:center and align-items:center... It doesn't work.. Please some feedback on this and also provide feedback for more improvement..
Community feedback
- @stijnmeershoekPosted over 2 years ago
The equivalent of justify-content: center; and align-items: center in CSS Grid is place-items: center; this centers vertically and horizontally
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