Picture Fill Example (VML)


Purpose

This example shows how to use the Fill child element to place an image inside a VML shape.

Example


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:oval style="width:120pt;height:90pt;" strokecolor="red" strokeweight="2pt">
  <v:fill type="frame" src="image1.jpg" />
</v:oval>