Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

CSS border-bottom-color Property

CSS border-bottom-color Property

Example

Set the bottom border color:

p

{

border-style:

solid

;

border-bottom-color:

#ff0000

;

}

Try it »


Tag Definition and Usage Notes

The border-bottom-color property sets the bottom border color of an element.

Note Before using the border-bottom-color property, the border style property must be declared first. An element must have a border before you can change its color.

Default value: not specified
Inherited: no
Version: CSS1
JavaScript syntax: object object.style.borderBottomColor="blue"

Browser support

The numbers in the table indicate the first browser version that supports this property.

property
border-bottom-color 1.0 4.0 1.0 1.0 3.5

Attribute values

Value Description Testing
color Specifies the background color. See CSSColor values for a complete list of color values.
transparent Specifies that the border color should be transparent. This is the default
inherit Specifies that the border color should be inherited from the parent element

Related Articles

CSS Tutorial: CSS Border

CSS Reference Manual: border-bottom property