border-inline-end-width

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.

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-inline-end-width CSS property defines the width of the logical inline-end border of an element, que se asigna al estilo de borde físico dependiendo del modo de escritura, la direccionalidad y la orientación del texto del elemento. Esto corresponde a las propiedades border-top-width y border-bottom-width, o border-left-width, y border-right-width dependiendo de los valores definidos por writing-mode, direction, y text-orientation.

Pruébalo

border-inline-end-width: thick;
writing-mode: horizontal-tb;
border-inline-end-width: thick;
writing-mode: vertical-rl;
border-inline-end-width: 4px;
writing-mode: horizontal-tb;
direction: rtl;
<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-inline-end-width: 2px;
border-inline-end-width: thick;

Propiedades relacionadas son border-block-start-width, border-block-end-width, and border-inline-start-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-inline-end-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-inline-end-width: 5px;
}

Especificaciones

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

Compatibilidad con navegadores

Mira también