border-block-end-color

Sets the color of the 'end' side of the block dimension (usually the bottom border). Using logical properties like this makes your CSS more readable for multi-language sites.

It is documented as part of the CSS Logical Properties and Values specification.

/* Usage Example */
footer {
  /* Sets the bottom border color specifically */
  border-block-end-color: #334155;
  border-block-end-style: solid;
  border-block-end-width: 1px;
}

/* Syntax */
border-block-end-color: border-top-color;

/* Global values */
border-block-end-color: inherit;
border-block-end-color: initial;
border-block-end-color: revert;
border-block-end-color: revert-layer;
border-block-end-color: unset;
Widely available Since 2021 95% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2021.

69+
41+
12.1+
79+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC