border-inline-start-width
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-width
define el ancho del borde lógico inicial en línea de un elemento, 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
(en-US) y border-bottom-width
, o border-left-width
(en-US), y border-right-width
(en-US) dependiendo de los valores definidos por writing-mode
, direction
, y text-orientation
.
Pruébalo
Sintaxis
css
/* <'border-width'> values */
border-inline-start-width: 5px;
border-inline-start-width: thick;
Propiedades relacionadas son border-block-start-width
, border-block-end-width
, and border-inline-end-width
, que definen los otros anchos del borde del elemento.
Valor inicial | medium |
---|---|
Applies to | all elements |
Heredable | no |
Percentages | logical-width of containing block |
Valor calculado | absolute length; 0 if the border style is none or hidden |
Animation type | by computed value type |
Valores
<'border-width'>
-
El ancho del borde. Mira
border-width
.
Sintaxis formal
border-inline-start-width =
<'border-top-width'>
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-start-width: 5px;
}
Especificaciones
Specification |
---|
CSS Logical Properties and Values Level 1 # border-width |
Compatibilidad con navegadores
BCD tables only load in the browser
Mira también
- Esta propiedad se asigna a una de las propiedades del borde físico:
border-top-width
(en-US),border-right-width
(en-US),border-bottom-width
, yborder-left-width
(en-US) writing-mode
,direction
,text-orientation