VML Shadow Element

This topic describes VML, a feature that is deprecated as of Windows Internet Explorer 9. Webpages and applications that rely on VML should be migrated to SVG or other widely supported standards.


As of December 2011, this topic has been archived. As a result, it is no longer actively maintained. For more information, see Archived Content. For information, recommendations, and guidance regarding the current version of Windows Internet Explorer, see Internet Explorer Developer Center.


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.



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:shadow on="True"/>

You may not notice the shadow unless you increase the Offset values, since the default offset is 2pt,2pt.