Weight Attribute

HTML (DHTML)

Weight Attribute

Internet Development Index

Defines the thickness of a stroke. Read/write String.

Applies To

Stroke

Tag Syntax

<v:element weight="expression">

Script Syntax

element.weight="expression"

expression=element.weight

Remarks

This attribute is the same as the StrokeWeight attribute of Shape and overrides it. The default value is 1 point.

VML Standard Attribute

Example

The stroke has a thickness of 5 points, not 2 points.

   <v:shape id="rect01"
   strokecolor="red" fillcolor="red" strokeweight="2pt"
   style="top:20;left:20;width:30;height:30"
   path="m 1,1 l 1,200, 200,200, 200,1 x e">
   <v:stroke weight="5pt"/>
   </v:shape>