Last updated on May 11th, 2016 at 03:26 pm

Image shadow with css

This is a simple css script that will create shadow from images. This is just a clean css class and you can call it from the image html tag using the class switch. Here is how it looks, there is no need of any complex scripts here.

.shadow_me {
-moz-box-shadow: -5px -5px 5px 5px #999;
-webkit-box-shadow: -5px -5px 5px 5px #999;
box-shadow: -5px -5px 5px 5px #999; 
}

This can also be called using the below html

<img src ="myimage.jpg" class="shadow_me">

DEMO

Leave a Reply

Your email address will not be published. Required fields are marked *