DEV Community

Akash Varma
Akash Varma

Posted on

CSS background-image as box-shadow?

Hi,

Is it possible to get background image as box-shadow?

Yes, it is!!

One way is to add extra div, make it as position absolute and add background-image URL. To be optimistic I used ::after(psuedo element) and inherited background-image from parent div.

Top comments (0)