Properti CSS grid-auto-rows
Contoh
Tetapkan ukuran default untuk baris dalam kisi:
.grid-container {
display: grid;
grid-auto-rows: 150px;
}
Definisi dan Penggunaan
Properti grid-auto-rows
menetapkan ukuran untuk baris dalam wadah kisi.
Properti ini hanya memengaruhi baris dengan ukuran yang tidak disetel.
Nilai bawaan: | mobil |
---|---|
Diwarisi: | tidak |
Animasi: | Ya. Baca tentang animasi |
Versi: kapan: | Modul Tata Letak Grid CSS Level 1 |
Sintaks JavaScript: | objek .style.gridAutoRows="60px" |
Dukungan Peramban
Angka-angka dalam tabel menentukan versi browser pertama yang sepenuhnya mendukung properti.
Property | |||||
---|---|---|---|---|---|
grid-auto-rows | 57 | 16 | 52 | 10 | 44 |
Sintaks CSS
grid-auto-rows: auto|max-content|min-content|length;
Nilai properti
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 |
Halaman Terkait
Tutorial CSS: Tata Letak Kotak CSS
Referensi CSS: Properti grid-auto - columns