|
Best Front Page and Web Design Forum |
|
Great Web
Graphic program here |
|
The Drop
Shadow & Shadow filter |
back - home - Filters scripts
|
|||||||||||
Instructions for use of filter
|
The drop shadow filter (opposed to Shadow
Filter - found here) Using filters The filter must be applied to an element that has width or height measurements. For example an image, table, table cell. You cannot, for example apply it to the <p>, H1, <b>.
Because an exact
measurement is required one can use the <div> or <span> and define
the width or height, or both. For example to apply the drop shadow filter
to a line of text you could do this: and the result would be this:
This is blue text with
gray drop shadow
The code is broken down as follows: <center> <div style="width:
400; height: 25; filter:
progid:DXImageTransform.Microsoft.dropShadow (OffX='2', OffY='2',
This is blue text with
gray drop shadow
Color='#c0c0c0' Positive='true'
This is blue text with
gray drop shadow
Don't forget to close your tags off - </div> Applying filter to an
image <img src="rover.gif" alt="my dog" width="104" height="129" style="filter: progid:DXImageTransform.Microsoft.dropShadow (OffX='-2', OffY='-2', Color='#c0c0c0', Positive='true')"> Applying filter to a
Table Cell The
Shadow Filter as in item 5 Alter the following (Color=#000000, Direction=135) to change color of the shadow and the direction. The below example has a shadow color of #C0C0C0 (gray) and a direction of 100.
This is now the shadow filter
Remember - these filters
only view in IE4 and higher. If you are using a WYSIWYG editor such as
Front Page, then you will only see the effect in Preview. What you see in
Normal view, is what other browsers will see. |
back - home - Filters scripts