Gets or sets the border color of the object.
HRESULT IHTMLStyle::get_borderColor(BSTR *p);HRESULT IHTMLStyle::put_borderColor(BSTR v);
- Pointer to a variable of type BSTR that receives one or more of the space-delimited values listed in Possible Values.
- BSTR that specifies one or more of the space-delimited values listed in Possible Values.
transparent Border is transparent. color Up to four color names or RGB values in the Color Table.
Returns S_OK if successful, or an error value otherwise.
Up to four different colors can be specified in the following order: top, right, bottom, left. If one color is supplied, it is used for all four sides. If two colors are supplied, the first is used for the top and bottom, and the second is used for left and right. If three colors are supplied, they are used for top, right and left, and bottom, respectively.
The IHTMLStyle::borderColor property does not render if the IHTMLStyle::borderStyle property is set to
Some browsers do not recognize color names, but all browsers should recognize RGB color values and display them correctly.
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
absoluteIHTMLStyle::position or layout to use this property. Element layout is set by providing a value for the IHTMLStyle::height property or the IHTMLStyle::width property.