Design comparison
Solution retrospective
Please give me a feedback
Community feedback
- @Deevyn9Posted over 2 years ago
Hi Oluwatobi, great solution you have here, everything looks great and pixel-perfect, however, you’ll have to center the container vertically on the desktop view.
Happy coding 🎈
0@Khun111Posted over 2 years ago@Deevyn9 Thanks a lot. To be honest I have no idea how to center it and I did try different alternatives but it stayed fixed to the top. I ended up adding a margin-top according my own discretion to move down a little. How would you suggest I fix it?
0@Deevyn9Posted over 2 years ago@Khun111 give the body 100% height and width, the use;
body { display: flex; Justify-content: center; align-items: center; }
ORbody { display: grid; place-items: center; }
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