loading...

CSS background-image as box-shadow?

akashvarma9 profile image Akash Varma ・1 min read

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.

Discussion

markdown guide