CSS background-image as box-shadow?

akashvarma9

Akash Varma

Posted on March 27, 2020

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.

๐Ÿ’– ๐Ÿ’ช ๐Ÿ™… ๐Ÿšฉ
akashvarma9
Akash Varma

Posted on March 27, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Tidycoder animation text
codepen Tidycoder animation text

June 26, 2024

Social media icons
codepen Social media icons

June 19, 2024

Responsive Comparison Table
codepen Responsive Comparison Table

June 12, 2024

Carrusel de Revistas RRCSH
codepen Carrusel de Revistas RRCSH

May 8, 2024

ยฉ TheLazy.dev

About