Export (0) Print
Expand All
top
Expand Minimize

borderBottom property

Specifies the properties of the bottom border of the object.

CSS Backgrounds and Borders Module Level 3, Section 4.4

 

Syntax

Integer value = object.put_borderBottom(BSTR v);Integer value = object.get_borderBottom(BSTR* sBottom);

Property values

Type: BSTR

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

width (medium)

Any of the range of width values available to the IHTMLCSSStyleDeclaration::borderBottomWidth property.

style (none)

Any of the range of style values available to the IHTMLCSSStyleDeclaration::borderBottomStyle property.

color

Any of the range of color values available to the IHTMLCSSStyleDeclaration::borderBottomColor property.

String format

border-bottom-width || border-bottom-style || <border-bottom-color>

CSS information

Applies ToAll elements
Mediavisual
Inheritedno
Initial Value(see individual properties)

Standards information

Remarks

The IHTMLCSSStyleDeclaration::borderBottom property is a composite property that sets the width, style, and color values for the bottom border of an object.

All individual border properties not set by the composite IHTMLCSSStyleDeclaration::borderBottom property are set to their default values. For example, the default value for width is "medium".

If a color is not specified, the text color is used.

For more information about supported colors, see the Color Table.

Examples

This example uses IHTMLCSSStyleDeclaration::borderBottom to change IHTMLCSSStyleDeclaration::borderBottomWidth, IHTMLCSSStyleDeclaration::borderBottomStyle, and IHTMLCSSStyleDeclaration::borderBottomColor for a div element.

An element styled using the border-bottom property


<body>
   <div class="bottom"></div>
</body>


div {
   border: 2px solid black;
   height: 50px;
   width: 50px;
}
.bottom {
   border-bottom: 2px dashed #00BFFF;
}

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

Reference
IHTMLCSSStyleDeclaration::border
Other Resources
CSS Enhancements in Internet Explorer 6

 

 

Community Additions

ADD
Show:
© 2014 Microsoft