Proprietà CSS in stile bordo destro
Esempio
Imposta uno stile per il bordo destro:
div {border-right-style: dotted;}
Altri esempi "Provalo da solo" di seguito.
Definizione e utilizzo
La border-right-style
proprietà imposta lo stile del bordo destro di un elemento.
Valore di default: | nessuno |
---|---|
Ereditato: | no |
Animabile: | no. Leggi su animabile |
Versione: | CSS1 |
sintassi JavaScript: | oggetto .style.borderRightStyle="punteggiato" |
Supporto browser
I numeri nella tabella specificano la prima versione del browser che supporta completamente la proprietà.
Property | |||||
---|---|---|---|---|---|
border-right-style | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
Sintassi CSS
border-right-style: none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|initial|inherit;
Valori di proprietà
Value | Description | Play it |
---|---|---|
none | Specifies no border. This is default | |
hidden | The same as "none", except in border conflict resolution for table elements | |
dotted | Specifies a dotted border | |
dashed | Specifies a dashed border | |
solid | Specifies a solid border | |
double | Specifies a double border | |
groove | Specifies a 3D grooved border. The effect depends on the border-color value | |
ridge | Specifies a 3D ridged border. The effect depends on the border-color value | |
inset | Specifies a 3D inset border. The effect depends on the border-color value | |
outset | Specifies a 3D outset border. The effect depends on the border-color value | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
Altri esempi
Esempio
Un bordo destro tratteggiato:
div {border-right-style: dashed;}
Esempio
Un solido bordo destro:
div {border-right-style: solid;}
Esempio
Un doppio bordo destro:
div {border-right-style: double;}
Esempio
Rimuovi il bordo destro:
div {border-right-style: none;}
Esempio
Un bordo destro della scanalatura:
div {
border-right-style: groove;
border-right-color: coral;
border-right-width: 7px;
}
Esempio
Un bordo destro di cresta:
div {
border-right-style: ridge;
border-right-color: coral;
border-right-width: 7px;
}
Esempio
Un bordo destro inserito:
div {
border-right-style: inset;
border-right-color: coral;
border-right-width: 7px;
}
Esempio
Un confine di destra iniziale:
div {
border-right-style: outset;
border-right-color: coral;
border-right-width: 7px;
}
Pagine correlate
Tutorial CSS: Bordo CSS
Riferimento CSS: proprietà border-right
Riferimento HTML DOM: proprietà borderRightStyle