Rect Border Style Example (VML)


Purpose

This example shows how to use the Stroke child element to customize the border of 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" />

<v:rect style="width:100pt;height:80pt;" strokecolor="red" strokeweight="2pt">
  <v:stroke dashstyle="dashdot"/>
</v:rect>