border-block-end-color

Baseline Widely available

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

Die border-block-end-color CSS-Eigenschaft definiert die Farbe des logischen Block-End-Rahmens eines Elements, die je nach Schreibmodus, Richtung und Textausrichtung des Elements auf eine physische Rahmenfarbe abgebildet wird. Sie entspricht der border-top-color, border-right-color, border-bottom-color oder border-left-color-Eigenschaft, abhängig von den festgelegten Werten für writing-mode, direction und text-orientation.

Probieren Sie es aus

Syntax

css
border-block-end-color: yellow;
border-block-end-color: #f5f6f7;

/* 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;

Verwandte Eigenschaften sind border-block-start-color, border-inline-start-color und border-inline-end-color, die die anderen Rahmenfarben des Elements definieren.

Werte

<color>

Die Farbe des Rahmens.

Formale Definition

Anfangswertcurrentcolor
Anwendbar aufalle Elemente
VererbtNein
Berechneter Wertberechnete Farbe
Animationstypby computed value type

Formale Syntax

border-block-end-color = 
<color> |
<image-1D>

<image-1D> =
<stripes()>

<stripes()> =
stripes( <color-stripe># )

<color-stripe> =
<color> &&
[ <length-percentage> | <flex> ]?

<length-percentage> =
<length> |
<percentage>

Beispiele

Rahmenfarbe mit vertikalem Text

HTML

html
<div>
  <p class="exampleText">Example text</p>
</div>

CSS

css
div {
  background-color: yellow;
  width: 120px;
  height: 120px;
}

.exampleText {
  writing-mode: vertical-lr;
  border: 10px solid blue;
  border-block-end-color: red;
}

Ergebnisse

Spezifikationen

Specification
CSS Logical Properties and Values Level 1
# border-color

Browser-Kompatibilität

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
border-block-end-color

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

Siehe auch