Gets or sets the width of the left, right, top, and bottom borders of the object.
HRESULT IHTMLRuleStyle::get_borderWidth(BSTR *p);HRESULT IHTMLRuleStyle::put_borderWidth(BSTR v);
- Pointer to a variable of type BSTR that receives up to four of the values listed in Possible Values.
- BSTR that specifies up to four of the values listed in Possible Values.
medium Default. thin Width less than the default. thick Width greater than the default. width Width consisting of a floating-point number, followed by an absolute units designator (
pc) or a relative units designator (
Returns S_OK if successful, or an error value otherwise.
Up to four different widths 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.
As of Microsoft Internet Explorer 5.5, this property applies to inline elements. With earlier versions of Windows Internet Explorer, inline elements must have an
absoluteIHTMLRuleStyle::position or layout to use this property. Element layout is set by providing a value for the IHTMLRuleStyle::height property or the IHTMLRuleStyle::width property.
The IHTMLRuleStyle::borderWidth property does not render if the IHTMLRuleStyle::borderStyle property is set to
IHTMLStyle::border, CSS Enhancements in Internet Explorer 6