borderBottomColor property

Specifies the foreground color of the bottom border of an object.

 

Syntax

Integer value = object.put_borderBottomColor(Variant v);Integer value = object.get_borderBottomColor(Variant* sColor);

Property values

Type: VARIANT

One of the color names or RGB values in the Color Table.

String format

<color> | currentColor | transparent | inherit

CSS information

Applies To All elements
Media visual
Inherited no
Initial Value currentColor

Standards information

Remarks

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

Examples

This example uses IHTMLCurrentStyle::borderBottomColor to set the bottom border color to a different color than the rest of the border.

<body>
   <div class="box"></div>
   <div class="rounded"></div>
</body>

The CSS below sets the bottom border color for two div elements. The remaining border sides retain the color specified by the IHTMLCurrentStyle::borderColor property.

.box {
   border-color: #BBBBBB;
   border-bottom-color: blue;
   border-style: solid;
   
}
.rounded {
   border-color: #C20000;
   border-bottom-color: #BBBBBB;
   border-style: dashed;    
   border-radius: 10px;
}

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IHTMLRuleStyle::border

IHTMLCurrentStyle::borderRightColor

IHTMLCurrentStyle::borderLeftColor

IHTMLCurrentStyle::borderBottomColor