DEV Community

Cover image for Applying shadow to transparent images
M Adeel Ahsan
M Adeel Ahsan

Posted on

Applying shadow to transparent images

box-shadow doesn't work well with transparent images. The image will show up wrapped in a rectangle.

So in order to tackle this situation, we can use the filter CSS property.

Top comments (0)