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

Experimental: Esta es una tecnología experimental
Comprueba la Tabla de compabilidad de navegadores cuidadosamente antes de usarla en producción.

La propiedad de CSS border-block-start-width define el ancho del borde lógico de bloque inicial de un elemento, que se asigna al estilo de borde físico dependen del modo de escritura, la direccionalidad y la orientación del texto del elemento. Esto corresponde a las propiedades border-top-width, border-right-width, border-bottom-width, o border-left-width dependiendo de los valores definidos por writing-mode, direction, y text-orientation.

Pruébalo

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: #000; border: 0 solid crimson; padding: 0.75em; width: 80%; height: 100px; unicode-bidi: bidi-override; } 

Sintaxis

css
/* <'border-width'> values */ border-block-start-width: 5px; border-block-start-width: thick; 

Propiedades relacionadas sonborder-block-end-width, border-inline-start-width, y border-inline-end-width, que definen los otros anchos del borde del elemento.

Valor inicialmedium
Applies toall elements
Heredableno
Percentageslogical-width of containing block
Valor calculadoabsolute length; 0 if the border style is none or hidden
Animation typeby computed value type

Valores

<'border-width'>

El ancho del borde. Mira border-width.

Sintaxis formal

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

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

Ejemplo

Contenido HTML

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

Contenido CSS

css
div { background-color: yellow; width: 120px; height: 120px; } .exampleText { writing-mode: vertical-lr; border: 1px solid blue; border-block-start-width: 5px; } 

Especificaciones

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

Compatibilidad con navegadores

Mira también