Proprietà CSS bordo sinistro
Esempio
Imposta lo stile del bordo sinistro per diversi elementi:
h1 {
border-left: 5px solid red;
}
h2 {
border-left: 4px dotted blue;
}
div {
border-left: double;
}
Definizione e utilizzo
La border-left
proprietà è una proprietà abbreviata per (nel seguente ordine):
Se viene omesso border-left-color, il colore applicato sarà il colore del testo.
Valore di default: | medio nessuno colore |
---|---|
Ereditato: | no |
Animabile: | sì, vedere le singole proprietà . Leggi su animabile |
Versione: | CSS1 |
sintassi JavaScript: | oggetto .style.borderLeft="3px blu punteggiato" |
Supporto browser
I numeri nella tabella specificano la prima versione del browser che supporta completamente la proprietà.
Property | |||||
---|---|---|---|---|---|
border-left | 1.0 | 4.0 | 1.0 | 3.5 | 1.0 |
Sintassi CSS
border-left: border-width border-style border-color|initial|inherit;
Valori di proprietà
Value | Description |
---|---|
border-left-width | Optional. Specifies the width of the left border. Default value is "medium" |
border-left-style | Required. Specifies the style of the left border. Default value is "none" |
border-left-color | Optional. Specifies the color of the left border. Default value is the color of the text |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Pagine correlate
Tutorial CSS: Bordo CSS
Riferimento HTML DOM: proprietà borderLeft