Design comparison
Solution retrospective
.
What challenges did you encounter, and how did you overcome them?.
What specific areas of your project would you like help with?.
Community feedback
- @danielmrz-devPosted 10 months ago
Hello @ktlamas29!
Your project looks great!
I noticed that you used
margin
to place the card in the middle of the page. Here's a very efficient way to center the card:- Apply this to the body (in order to work properly, don't use position or margins):
body { min-height: 100vh; display: flex; justify-content: center; align-items: center; }
I hope it helps!
Other than that, great job!
Marked as helpful1 - @Seif-BasemPosted 10 months ago
hello my friend I looked at your code and you have done a great job specially with that shadow. I just have 1 comment to center the object in the screen. 1- in the body you don't need width, height, margin-top, padding, flex, justify-content, align-items. just delete them and instead type these on your container div: position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
Marked as helpful1
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