Diagonal Up Gradient Example (VML)


Purpose

This example illustrates how to use attributes of the Fill child element to define a gradient fill.

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="HEIGHT: 80pt; WIDTH: 120pt" coordsize = "21600,21600" fillcolor = "red">
 <v:fill method  = "linear sigma" type = "gradient" angle = "-135" />
</v:rect>