CoordOrigin Example (VML)


Purpose

This example shows how to use the CoordOrigin attribute to control 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:group style="position:relative;left:1pt;top:2pt;width:300pt;height:300pt;" coordsize="1000,1000" coordorigin="-500,-500">
  <v:oval style="position:absolute;left:0;top:0;width:400;height:300;" fillcolor="red" />
  <v:roundrect style="position:absolute;left:0;top:0;width:250;height:200;" fillcolor="green" />
</v:group>