CSS border-bottom-color Property


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
Applies to
All elements
Computed value
The computed color
JavaScript syntax

Interactive Demo

The rusty swing set creaked a lonely lullaby in the twilight, shadows lengthening like grasping fingers across the dew-kissed grass. A lone dandelion seed, adrift on the breeze, whispered secrets of faraway fields, of dandelion suns and galaxies spun from fluff. Somewhere, beyond the veil of dusk, a coyote laughed, echoing through the stillness like a forgotten memory.


border-bottom-color: <color> | transparent


  • <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


<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.

Edge Chrome Firefox Opera Safari
Tablets / Mobile
Chrome Firefox Opera Safari Samsung Webview

Last updated by CSSPortal on: 31st December 2023