CSS grid-auto-rows Eigenschap
Voorbeeld
Stel een standaardgrootte in voor de rijen in een raster:
.grid-container {
display: grid;
grid-auto-rows: 150px;
}
Definitie en gebruik
De grid-auto-rows
eigenschap stelt een grootte in voor de rijen in een rastercontainer.
Deze eigenschap is alleen van invloed op rijen waarvan de grootte niet is ingesteld.
Standaardwaarde: | auto |
---|---|
geërfd: | Nee |
Animeerbaar: | Ja. Lees over animeren |
Versie: | CSS-rasterlay-outmodule niveau 1 |
JavaScript-syntaxis: | object .style.gridAutoRows="60px" |
Browserondersteuning
De getallen in de tabel geven de eerste browserversie aan die de eigenschap volledig ondersteunt.
Property | |||||
---|---|---|---|---|---|
grid-auto-rows | 57 | 16 | 52 | 10 | 44 |
CSS-syntaxis
grid-auto-rows: auto|max-content|min-content|length;
Eigendomswaarden
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 |
Gerelateerde pagina's
CSS-zelfstudie: CSS-rasterlay-out
CSS-referentie: de eigenschap grid-auto-columns