border-inline-start

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-start es una propiedad abreviada para establecer los valores de la propiedad inicial del borde individual en línea en un solo lugar en la hoja de estilos.

Pruébalo

Sintaxis

css
border-inline-start: 1px;
border-inline-start: 2px dotted;
border-inline-start: medium dashed green;

border-inline-start es especificado con uno o más de border-inline-start-width, border-inline-start-style, and border-inline-start-color. El borde físico al que se mapea depende del modo de escritura, la direccionalidad y la orientación del texto del elemento. Esto corresponde a las propiedades border-top, border-right, border-bottom, o border-left dependiendo de los valores definidos por writing-mode, direction, y text-orientation.

Propiedades relacionadas son border-block-start, border-block-end, and border-inline-end, que definen los otros bordes del elemento.

Valor inicialas each of the properties of the shorthand:
Applies toall elements
Heredableno
Valor calculadoas each of the properties of the shorthand:
Animation typeas each of the properties of the shorthand:

Valores

El border-inline-start es especificado con uno o más de los sigueintes valores, en cualquier orden:

<'border-width'>

El ancho del borde. Mira border-width.

<'border-style'>

La línea de estilo del borde. Mira border-style.

<'color'>

El color del borde. Mira color.

Sintaxis formal

border-inline-start = 
<line-width> ||
<line-style> ||
<color>

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

<line-style> =
none |
hidden |
dotted |
dashed |
solid |
double |
groove |
ridge |
inset |
outset

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-rl;
  border-inline-start: 5px dashed blue;
}

Especificaciones

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

Compatibilidad con navegadores

BCD tables only load in the browser

Mira también