Reprence Html CSS javascript PHP MySQL Bootsrap

CSS3 Drop Shadows

With CSS3, you can apply drop shadow to an element.

Using CSS3 Drop Shadows

The CSS3 gives you ability to add drop shadow effects to the elements like you do in Photoshop without using any images. Prior to CSS3, sliced images are used for creating the shadows around the elements that was quite annoying.

The following section will describe you how to apply the shadow on text and elements.


CSS3 box-shadow Property

The box-shadow property can be used to add shadow to the element's boxes. You can even apply more than one shadow effects using a comma-separated list of shadows. The basic syntax of creating a box shadow can be given with:

sdw1

The components of the box-shadow property have the following meaning:

sdw2

See the CSS3 box-shadow property to learn more about the other possible values.

Similarly, you can add the multiple box shadow using a comma-separated list:



CSS3 text-shadow Property

You can use the text-shadow property to apply the shadow effects on text. You can also apply multiple shadows to text using the same notation as box-shadow.