Design comparison
Solution retrospective
Hi! feel free to comment what I need to improve and suggestion thanks! and I'm newbie in SCSS!
Community feedback
- @correlucasPosted about 2 years ago
๐พHello again Troy, Congratulations on completing this challenge!
Here's one tip for you:
The circle images are placed perfectly and this nice, now all you miss is to align the card to the screen center.The first thing you need to do is to remove the margins used to align it, then apply
min-height: 100vh
to make the body height size becomes 100% of the screen height, this way you make sure that whatever the situation the child element (the container) align the body withdisplay: flex
andalign-items: center
/justify-items: center
.@media (min-width: 1200px) body { min-height: 100vh; background-position: top -800px right 740px, bottom -1030px left 570px; display: flex; align-items: center; justify-content: center; flex-direction: column; }
โ๏ธ I hope this helps you and happy coding!
Marked as helpful1 - @troy03Posted about 2 years ago
Thanks such a big help I though using margin will be an easier
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