Propiedad CSS border-left-width
Ejemplo
Establezca un ancho para el borde izquierdo:
div {border-left-width: thin;}
Más ejemplos de "Pruébelo usted mismo" a continuación.
Definición y uso
La border-left-width
propiedad establece el ancho del borde izquierdo de un elemento.
Nota: Declare siempre la propiedad border-style o
border-left-style antes de la border-left-width
propiedad. Un elemento debe tener bordes antes de poder cambiar el ancho.
Valor por defecto: | medio |
---|---|
Heredado: | No |
Animable: | si. Leer sobre animable |
Versión: | CSS1 |
Sintaxis de JavaScript: | objeto .style.borderLeftWidth="5px" |
Compatibilidad con navegador
Los números de la tabla especifican la primera versión del navegador que es totalmente compatible con la propiedad.
Property | |||||
---|---|---|---|---|---|
border-left-width | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
Sintaxis CSS
border-left-width: medium|thin|thick|length|initial|inherit;
Valores de propiedad
Value | Description | Play it |
---|---|---|
medium | Specifies a medium left border. This is default | |
thin | Specifies a thin left border | |
thick | Specifies a thick left border | |
length | Allows you to define the thickness of the left border. Read about length units | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
Más ejemplos
Ejemplo
Establezca el ancho del borde izquierdo en medio:
div {border-left-width: medium;}
Ejemplo
Establezca el ancho del borde izquierdo en grueso:
div {border-left-width: thick;}
Ejemplo
Establezca el ancho del borde izquierdo en 1px:
div {border-left-width: 1px;}
Ejemplo
Establezca el ancho del borde izquierdo en 15px:
div {border-left-width: 15px;}
páginas relacionadas
Tutorial de CSS: Borde CSS
Referencia de CSS: propiedad del borde izquierdo
Referencia HTML DOM: propiedad borderLeftWidth