TextBox Example (VML)


Purpose

This example shows how to use the TextBox element to attach text to a VML shape.

Example

Click here

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:roundrect style="width:80pt;height:30pt;" fillcolor="red">
  <v:fill type="gradient" />
  <v:textbox>
    <a href="http://www.microsoft.com/">Click here</a>
  </v:textbox> 
</v:roundrect>