Line Shape Example (VML)


Purpose

This example demonstrates how to use the Line element to create 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:line from="20pt,20pt" to="100pt,20pt" strokecolor="red" strokeweight="2pt" />