Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
Got it working rather quickly.
What challenges did you encounter, and how did you overcome them?Centering the components. Learned the css trick top: 50%; left: 50%; transform: translate(-50%, -50%);
Community feedback
- @KapteynUniversePosted 25 days ago
Hey, nice job.
Using flex or grid for centering would be better.
body { display: flex; justify-content: center; align-items: center; min-height: 100vh; }
Grid i guess like this
body { display: grid; place-items: center min-height: 100vh; }
Marked as helpful2
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