CSS border-bottom-color Property
Description
The border-bottom-color
CSS property is used to specify the color of the bottom border of an element. It is part of the broader set of properties that control the appearance of borders around elements, allowing web developers to define the specific color they want for the bottom border independently of the other borders (top, right, and left). By setting the border-bottom-color
property, designers can customize the visual style of their web pages, adding visual separation or decorative elements to enhance the overall design. This property is often used in combination with other border-related properties like border-width and border-style to create diverse and appealing border styles.
- Initial value
- currentColor
- Applies to
- All elements
- Inherited
- No
- Computed value
- The computed color
- Animatable
- Yes
- JavaScript syntax
- object.style.borderBottomColor
Interactive Demo
Syntax
border-bottom-color: <color> | transparent
Values
- <color>The computed value of the 'color' property. This value can be a basic color keyword, such as red or green, a numerical value, an RGB or RGBA value, or an HSL or HSLA value.
- transparentFully transparent. This keyword can be considered a shorthand for transparent black, rgba(0,0,0,0), which is its computed value.
- inherit
Example
<div class="border">This is an example of the border-bottom-color property using a red solid border 3px in width.</div>
.border {
border: 1px solid blue;
border-bottom-style: solid;
border-bottom-width: 3px;
border-bottom-color: red;
margin: 20px;
padding: 20px;
}
Browser Support
The following table will show you the current browser support for the CSS border-bottom-color
property.
Desktop | |||||
12 | 1 | 1 | 3.5 | 1 |
Tablets / Mobile | |||||
18 | 4 | 10.1 | 1 | 1 | 4.4 |
Last updated by CSSPortal on: 31st December 2023