Design comparison
Community feedback
- @correlucasPosted about 2 years ago
👾Hello @zizi-ayman, Congratulations on completing this challenge!
1.The box-shadow is a bit too strong, this is due the
opacity
andblur
. The secret to create a perfect and smooth shadow is to have low values foropacity
and increaseblur
try this value instead:box-shadow: 12px 7px 20px 6px rgb(57 75 84 / 8%);
If you’re not familiar to box-shadow you can use this site to create the shadow design and then just drop the code into the CSS: https://html-css-js.com/css/generator/box-shadow/
Add
min-height: 100vh
to make the body have ever the size of the screen and align center:body { background-color: hsl(217, 54%, 11%); display: flex; justify-content: center; align-items: center; color: hsl(215, 51%, 70%); font-family: 'Montserrat', sans-serif; min-height: 100vh; }
✌️ I hope this helps you and happy coding!
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