Simple Shadow Example (VML)


Purpose

This example shows how to use the Shadow child element to add a shadow to a VML shape.

Example


Code

<!-- Include the VML behavior -->
<style>v\: * { behavior: url(#default#VML);display:inline-block }</style>

<!-- Declare the VML namespace -->
<xml:namespace ns="urn:schemas-microsoft-com:vml" prefix="v"/>

<p>
<v:shape fillcolor="yellow"
  style="top:1px;left:1px;width:200px;height:200px"
  path="m 1,1 l 1,200, 200,200, 200,1 x e">
  <v:shadow on="True" color="blue" offset="5pt,5pt" />
</v:shape>
</p>