DEV Community

Abddelrahman Saad
Abddelrahman Saad

Posted on

Unique tip for CSS ✨

Hello guys, I've found a very useful tip I didn't know before and I would like to share it with you.

Have you tried before to make a shadow for a transparent picture and the final outcome became something like that😒

F3HEaj.md.png

and you want it to be something like that🤩

F3HXwB.md.png

Ok here's the way you can achieve the awesome result✨

instead of

box-shadow: 2px 4px 6px #ff8429

do it like this

filter: drop-shadow(2px 4px 6px #ff8429)

That's it, have a productive day❤️

Top comments (0)