Introduction

Link Effects

Drop Shadows

Curves

IMC Home Page

Defining Drop Shadows

Browser Issues

The biggest problem with drop shadows is that they are implimented differently for each browser. Without going into technical detail, the Web browsers fall into three general categories that are classified by the technology used to display pages.

At the time of this writing the CSS coding syntax is different for each of these three browsers. It is necessary to create three versions of the attributes for the drop shadows. At first this seems like a lot of work, but as you will see, it is not particularly diffucult.

A fall roadOn the right is a photograph with a simple drop shadow applied to it. The syntax for the effect is:

box-shadow: 4px 4px 6px #999999;
-webkit-box-shadow: 4px 4px 6px #999999;
-moz-box-shadow: 4px 4px 6px #999999;

NOTE: Be sure to view this page in more than one browser so that you can see how each browser interprets the CSS rule.

Creating the Drop Shadows

You may apply the drop shadow to many page elements such as images and divs. They can be applied to tables, too. We have applied the ID #FallRoad to the image. The entire CSS rule for this example is:

#FallRoad {
float: right;
box-shadow: 10px 10px 10px 4px #999999;
-webkit-box-shadow: 10px 10px 10px 4px #999999;
-moz-box-shadow: 10px 10px 15px 4px #999999;
filter:progid:DXImageTransform.Microsoft.Shadow(color='#999999',direction='120',strength='6' }

Here is how each property:attribute line breaks down:

On the next page we will discover how the values of these attributes affect the dispaly of drop shadows.

< Return to Page 1 > < Continue to Page 3 >