Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

borderColor property

Specifies the border color of the object.

CSS Backgrounds and Borders Module Level 3, Section 4.1

Syntax

Integer value = object.put_borderColor( v);Integer value = object.get_borderColor(* sColor);

Property values

Type: BSTR

one or more of the space-delimited values listed in Possible Values.

transparent (transparent)

Border is transparent.

color (color)

Up to four color names or RGB values in the Color Table.

String format

[ <color> | currentColor | transparent ] {1,4} | inherit

CSS information

Applies ToAll elements
Mediavisual
Inheritedno
Initial Valuesee individual properties

Standards information

Remarks

The IHTMLCurrentStyle::borderColor property is a shorthand for the following properties:

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 IHTMLCurrentStyle::borderColor property does not render if the IHTMLCurrentStyle::borderStyle property is set to none.

Some browsers do not recognize color names, but all browsers should recognize RGB color values and display them correctly.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IHTMLRuleStyle::border

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.