Design comparison
SolutionDesign
Solution retrospective
When trying to center a card, there were some complications because if I did it with display: grid
, the card took the width reference from the grid itself instead of the parent, so I had to use display: flex
. Does anyone know why this happens?
Furthermore, do you have any suggestions on how I can improve the responsiveness or any other aspect?
Community feedback
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