Dieser Inhalt wurde automatisch aus dem Englischen übersetzt, und kann Fehler enthalten. Erfahre mehr über dieses Experiment.

View in English Always switch to English

border-block-start-width

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨Januar 2020⁩.

Die border-block-start-width CSS Eigenschaft definiert die Breite der logischen Block-Start-Grenze eines Elements, die abhängig vom Schreibrichtungsmodus, der Richtung und der Textorientierung des Elements auf eine physische Rahmenbreite abgebildet wird. Sie entspricht der border-top-width, border-right-width, border-bottom-width oder border-left-width Eigenschaft, abhängig von den Werten, die für writing-mode, direction und text-orientation definiert sind.

Probieren Sie es aus

border-block-start-width: thick; writing-mode: horizontal-tb; 
border-block-start-width: thick; writing-mode: vertical-rl; 
border-block-start-width: 4px; writing-mode: horizontal-tb; 
border-block-start-width: 4px; writing-mode: vertical-lr; 
<section class="default-example" id="default-example"> <div class="transition-all" id="example-element"> This is a box with a border around it. </div> </section> 
#example-element { background-color: palegreen; color: black; border: 0 solid crimson; padding: 0.75em; width: 80%; height: 100px; unicode-bidi: bidi-override; } 

Syntax

css
/* <'border-width'> values */ border-block-start-width: 5px; border-block-start-width: thick; /* Global values */ border-block-start-width: inherit; border-block-start-width: initial; border-block-start-width: revert; border-block-start-width: revert-layer; border-block-start-width: unset; 

Verwandte Eigenschaften sind border-block-end-width, border-inline-start-width und border-inline-end-width, welche die anderen Rahmenbreiten des Elements definieren.

Werte

<'border-width'>

Die Breite des Rahmens. Siehe border-width.

Formale Definition

Anfangswertmedium
Anwendbar aufalle Elemente
VererbtNein
Prozentwertelogische Breite des beinhaltenden Blocks
Berechneter Wertabsolute Länge; 0, falls der Rahmenstil none oder hidden ist
Animationstypby computed value type

Formale Syntax

border-block-start-width = 
<line-width>

<line-width> =
<length [0,∞]> |
thin |
medium |
thick

Beispiele

Rahmenbreite 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: 1px solid blue; border-block-start-width: 5px; } 

Ergebnisse

Spezifikationen

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

Browser-Kompatibilität

Siehe auch