r/css • • Mar 07 '21

When my css is missing "that little something"

Post image
498 Upvotes

12 comments sorted by

10

u/tatarjr Mar 07 '21

Wait are filters the new way to box shadows? What happened to box-shadows?

9

u/BoltKey Mar 07 '21

They are a bit different thing. Box shadows draw shadow around the element frame, while drop shadow works with the alpha of the element and casts shadow accordingly.

59

u/turnups Mar 07 '21

Drop a little border radius on there too

22

u/philisweatly Mar 07 '21

4px. Juuuuuuust enough.

31

u/Guiee Mar 07 '21

Missing RGBA transparency.

3

u/[deleted] Mar 07 '21

When in doubt, add white space.

3

u/Stompya Mar 07 '21

Not to mention the inset shadow

2

u/Raredisarray Mar 07 '21

O fuck ya boiiiii

1

u/JoyShaheb_ Mar 07 '21

Hehe boiiiii XD

1

u/throwawayceled Mar 07 '21

I refuse to use this since I'm scared for browser support