
Design comparison
Solution retrospective
proud of how cool i am
What challenges did you encounter, and how did you overcome them?dw about it
What specific areas of your project would you like help with?how do you center a div fr
Community feedback
- @beowulf1958Posted 2 months ago
Congratulations on completing this challenge. Your component looks awesome.
In order to center the component, you apply flex display on the body element and use align-items and justify-content to center the component. This article will explain it all.
body { display: flex; align-items: center; justify-content: center; min-height: 100vh;
Don't forget to set the min-height. Hope this helps
0 - @AugustMattPosted 2 months ago
Hello! You can center the card using flex display concepts! Take a look at the justify-content and align-items properties! Good luck!
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