Background Gradient Example (VML)


Purpose

This example shows how to use the Fill child element to control the appearance of a web page.


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:background fillcolor="red">
  <v:fill type="gradient" />
</v:background>