Shadow Element | Internet Development Index |
Defines a shadow for a shape.
The following attributes modify a shadow.
Attribute | Description |
Color | Defines the color of a shadow. |
Color2 | Defines the second color of a shadow. |
ID | Specifies the unique identifier of a shadow. |
Matrix | Defines the perspective transform of a shadow. |
Obscured | Determines whether the shadow is transparent. |
Offset | Defines how far the shadow extends past the shape. |
Offset2 | Defines a second offset. |
On | Determines whether a shadow is displayed. |
Opacity | Determines the transparency of a shadow. |
Origin | Defines the center of the shadow. |
Type | Specifies the type of shadow. |
Remarks
This element must be defined within a Shape element.
In addition, the On attribute must be set to True.
The following is the minimum code needed to produce a shadow.
<v:rect fillcolor="green" style="position:relative;top:1;left:1;width:50;height:50"> <v:shadow on="True"/> </v:rect>
You may not notice the shadow unless you increase the Offset values, since the default offset is 2pt,2pt.
Examples
Click here to view a simple shape with a shadow.
Click here to view a more complex sample.