Design comparison
SolutionDesign
Community feedback
- @willettoPosted almost 3 years ago
Hey, nice work! I wanted to share a trick I figured out for my box-shadow today. I tried putting a negative value for the spread-radius (4th number) and it worked great! Doing that shrunk the shadow evenly underneath the container, leaving only the lightest part of the box-shadow remaining.
.container { box-shadow: 0 0 20px -10px var(--grayishBlue); }
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