Proprietà CSS grid-column-gap
Esempio
Imposta lo spazio tra le colonne su 50px:
.grid-container {
grid-column-gap: 50px;
}
Definizione e utilizzo
La grid-column-gap
proprietà definisce la dimensione dello spazio tra le colonne in un layout a griglia.
Nota: questa proprietà è stata rinominata in CSS3.
column-gap
Valore di default: | 0 |
---|---|
Ereditato: | no |
Animabile: | sì. Leggi su animabile |
Versione: | Modulo layout griglia CSS Livello 1 |
sintassi JavaScript: | oggetto .style.gridColumnGap="50px" |
Supporto browser
I numeri nella tabella specificano la prima versione del browser che supporta completamente la proprietà.
Property | |||||
---|---|---|---|---|---|
grid-column-gap | 57 | 16 | 52 | 10 | 44 |
Sintassi CSS
grid-column-gap: length;
Valori di proprietà
Value | Description | Play it |
---|---|---|
length | Any legal length value, like px or %. 0 is the default value. Read about length units |
Pagine correlate
Tutorial CSS: layout della griglia CSS
Riferimento CSS: la proprietà grid-gap
Riferimento CSS: la proprietà grid-row-gap