Archived topic
Box Shadow - Only Apply to Image
3 replies · Started by Math on February 25, 2022
Viewing posts 1–4 of 4
Hi,
I have a custom CSS box-shadow applied to select images.
.image-box-shadow {
box-shadow: 0 10px 15px rgb(0 0 0 / 15%);
}
It was working well, but as of late, the box-shadow seems to be applying to the entire container width rather than the image itself. Can you please take a look and advise how to fix it?
Images are on the right-hand side - Link to page.
Thank you.
Hi Math,
Try this :)
.image-box-shadow img{
box-shadow: 0 10px 15px rgb(0 0 0 / 15%);
}
Perfect! thank you for the quick fix.
No problem :)
This archived topic is closed to new replies.