Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

border-bottom-color — bottom border color

The border-bottom-color property sets the color of the physical bottom border. It does not set border width or style; its initial currentcolor value uses the element’s color value.

Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required

Syntax

border-bottom-color: <color>;
/* Level 4 draft: border-bottom-color: <color> | <image-1D>; */

border-bottom-color sets the bottom border’s color without changing the other edges. “Bottom” means the physical side, independent of writing direction. It is therefore not always equivalent to the logical border-block-end-color.

The Level 3 syntax accepts one <color> value, such as #0066cc, red, transparent, or currentcolor. The initial value is currentcolor, which uses the same element’s color. The property is not automatically inherited. transparent does not remove the space occupied by the border.

Color alone does not create a visible line: a visible style such as solid and a nonzero width are needed. With border-bottom-style: none or hidden, the color produces no visible border. The border, border-bottom, and border-color shorthands can reset this color, depending on the cascade; the example therefore places the color declaration after the shorthand.

The Level 4 draft extends the grammar with <image-1D>. This is a specification-draft extension, not confirmation of Chromium 152 support. The example deliberately uses a <color> value and requires local verification.

Examples

<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>border-bottom-color</title>
<style>
  .sample {
    width: 200px;
    padding: 12px;
    color: #222222;
    background: #ffffff;
    border-bottom: 4px solid;
    border-bottom-color: #0066cc;
  }
</style>
<div class="sample">Bottom border</div>
</html>

Result

A box containing “Bottom border” with a solid blue bottom border, 4 CSS px thick. Expected computed border-bottom-color: rgb(0, 102, 204).

The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.

Sources