CSS border-bottom-width Propiedad
Ejemplo
Establezca un ancho para el borde inferior:
div {border-bottom-width: thin;}
Más ejemplos de "Pruébelo usted mismo" a continuación.
Definición y uso
La border-bottom-width
propiedad establece el ancho del borde inferior de un elemento.
Nota: Declare siempre la propiedad border-style o
border-bottom-style antes de la border-bottom-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.borderBottomWidth="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-bottom-width | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
Sintaxis CSS
border-bottom-width: medium|thin|thick|length|initial|inherit;
Valores de propiedad
Value | Description | Play it |
---|---|---|
medium | Specifies a medium bottom border. This is default | |
thin | Specifies a thin bottom border | |
thick | Specifies a thick bottom border | |
length | Allows you to define the thickness of the bottom 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 inferior en medio:
div {border-bottom-width: medium;}
Ejemplo
Establezca el ancho del borde inferior en grueso:
div {border-bottom-width: thick;}
Ejemplo
Establezca el ancho del borde inferior en 1px:
div {border-bottom-width: 1px;}
Ejemplo
Establezca el ancho del borde inferior en 15 px:
div {border-bottom-width: 15px;}
páginas relacionadas
Tutorial de CSS: Borde CSS
Referencia de CSS: propiedad de borde inferior
Referencia HTML DOM: propiedad borderBottomWidth