Fill Element

HTML (DHTML)

Fill Element

Internet Development Index

Defines a fill for a shape.

The following attributes modify a fill.

AttributeDescription
AlignShapeDetermines whether an image will align with a shape.
AltHRefSpecifies an alternate reference for an image.
AngleDefines the angle of a gradient fill.
AspectSpecifies how the fill image aspect will be preserved.
ColorDefines the color of a fill.
Color2Defines the second color for a fill.
ColorsDefines multiple colors for a gradient fill.
DetectMouseClickDetermines whether a mouse click is detected.
FocusDefines the center of a linear gradient fill.
FocusPositionDefines the center of a radial gradient fill.
FocusSizeDefines the focus size for a radial fill.
HRefDefines a URL to the original image file.
IDDefines a unique identifier for the fill.
MethodDefines the method used to generate a gradient fill.
OnDetermines whether the fill wil be displayed.
OpacityDefines the transparency of a fill.
Opacity2Defines the transparency of the second fill color.
OriginDefines the center of an image.
PositionDefines the position of an image.
SizeDefines the size of an image.
SrcDefines the image to load for a fill.
TitleDefines the title of a fill.
TypeDefines the type of fill.

Remarks

This element must be defined within a Shape element.

The following code shows a simple gradient fill for a shape.

   <v:shape
   style="position:relative;top:1;left:1;width:400;height:400"
   path = "m 1,1 l 1,200, 200,200, 200,1 x e">
   <v:fill type=gradient color="blue" color2="yellow"/>
   </v:shape>

Examples

Click here to view a simple gradient fill.

Click here to view a more complex sample.