Proprietà CSS grid-auto-rows
Esempio
Imposta una dimensione predefinita per le righe in una griglia:
.grid-container {
display: grid;
grid-auto-rows: 150px;
}
Definizione e utilizzo
La grid-auto-rows
proprietà imposta una dimensione per le righe in un contenitore griglia.
Questa proprietà interessa solo le righe con la dimensione non impostata.
Valore di default: | auto |
---|---|
Ereditato: | no |
Animabile: | sì. Leggi su animabile |
Versione: | Modulo layout griglia CSS Livello 1 |
sintassi JavaScript: | oggetto .style.gridAutoRows="60px" |
Supporto browser
I numeri nella tabella specificano la prima versione del browser che supporta completamente la proprietà.
Property | |||||
---|---|---|---|---|---|
grid-auto-rows | 57 | 16 | 52 | 10 | 44 |
Sintassi CSS
grid-auto-rows: auto|max-content|min-content|length;
Valori di proprietà
Value | Description | Play it |
---|---|---|
auto | Default value. The size of the rows is determined by the size of the largest item in the row | |
max-content | Sets the size of each row to depend on the largest item in the row | |
min-content | Sets the size of each row to depend on the largest item in the row | |
length | Sets the size of the rows, by using a legal length value. Read about length units |
Pagine correlate
Esercitazione CSS: layout della griglia CSS
Riferimento CSS: la proprietà grid-auto-columns