Rect Color Example (VML)


Purpose

This example shows how to use the attributes of the Rect element to control the appearance 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:120pt;height:80pt;" fillcolor="yellow" strokecolor="blue" />