Propriedade CSS border-right-width
Exemplo
Defina uma largura para a borda direita:
div {border-right-width: thin;}
Mais exemplos de "Experimente você mesmo" abaixo.
Definição e uso
A border-right-width
propriedade define a largura da borda direita de um elemento.
Observação: sempre declare a propriedade border-style ou
border-right-style antes da border-right-width
propriedade. Um elemento deve ter bordas antes que você possa alterar a largura.
Valor padrão: | médio |
---|---|
Herdado: | não |
Animavel: | sim. Leia sobre animáveis |
Versão: | CSS1 |
Sintaxe JavaScript: | objeto .style.borderRightWidth="5px" |
Suporte ao navegador
Os números na tabela especificam a primeira versão do navegador que oferece suporte total à propriedade.
Property | |||||
---|---|---|---|---|---|
border-right-width | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
Sintaxe CSS
border-right-width: medium|thin|thick|length|initial|inherit;
Valores de propriedade
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 |
Mais exemplos
Exemplo
Defina a largura da borda direita como média:
div {border-right-width: medium;}
Exemplo
Defina a largura da borda direita para grossa:
div {border-right-width: thick;}
Exemplo
Defina a largura da borda direita para 1px:
div {border-right-width: 1px;}
Exemplo
Defina a largura da borda direita para 15px:
div {border-right-width: 15px;}
Páginas relacionadas
Tutorial CSS: borda CSS
Referência CSS: propriedade border-right
Referência HTML DOM: propriedade borderRightWidth