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