Design comparison
SolutionDesign
Solution retrospective
I could use some advice on the box-shadows in the design. I struggled with having the shadow ONLY at the bottom of the card (and not leaking out the sides like it is). Any tips?
Community feedback
- Account deleted
Nice one, your solution looks pretty good, and dealing with the box-shadow doesn't have to be hard, it's actually pretty simple;
- lets say you a
div
with abox-shadow
;
div{ width:100px; height:100px; box-shadow: 10px 10px 10px 10px; }
- The first value will add a box-shadow on the x-axis/left and right/on the sides. The value can either be negative or positive. If it's negative it'll be on the left(before the div) and if it's positive it'll be on the right(after the div).
- The second value deals with the y-axis/top and bottom. It's the same as the first one, a negative will add a box-shadow at top and positive value will add it a the bottom.
- The third value controls the blur.
- The last value adds it on all sides.
- You can also add a color at the end if you want it to be a certain color.
Hope it's not complicated... Keep coding👍.
Marked as helpful1 - lets say you a
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