borderWidth property
Specifies the thicknesses of the left, right, top, and bottom borders of an object.
![]() |
Syntax
Integer value = object.put_borderWidth( v);Integer value = object.get_borderWidth(* sWidth);
Property values
Type: BSTR
up to four of the values listed in Possible Values.-
Initial value. The default thickness.
-
Less than the default thickness.
-
Greater than the default thickness.
-
Thickness specified by a floating-point number, followed by a supported length unit.
String format
[ medium | thin | thick |
<width>
]
{1,4}
CSS information
| Applies To | All elements |
|---|---|
| Media | visual |
| Inherited | no |
| Initial Value | medium |
Standards information
- CSS Backgrounds and Borders Module Level 3, Section 4.3
Remarks
Up to four different thicknesses can be specified, in the following order: top, right, bottom, left.
- If one width is specified, it is used for all four sides.
- If two widths are specified, the first is used for the top and bottom borders, and the second is used for left and right borders.
- If three widths are specified, they are used for top, right/left, and bottom borders, respectively.
The border does not render if the IHTMLRuleStyle::borderStyle property is set to none, or if IHTMLRuleStyle::borderWidth is set to "0".
Requirements
|
Minimum supported client |
Windows XP |
|---|---|
|
Minimum supported server |
Windows Server 2003 |
|
Header |
|
|
IDL |
|
|
DLL |
|
See also
- Reference
- IHTMLRuleStyle::border
- Other Resources
- CSS Enhancements in Internet Explorer 6
