CSS grid-auto-columns Özellik
Örnek
Izgaradaki sütunlar için varsayılan bir boyut ayarlayın:
.grid-container {
display: grid;
grid-auto-columns: 50px;
}
Tanım ve Kullanım
Özellik grid-auto-columns
, bir ızgara kapsayıcısındaki sütunlar için bir boyut ayarlar.
Bu özellik yalnızca boyutu ayarlanmamış sütunları etkiler.
Varsayılan değer: | Oto |
---|---|
Miras: | Hayır |
canlandırılabilir: | Evet. Canlandırılabilir hakkında bilgi edinin |
Sürüm: | CSS Izgara Düzen Modülü Seviye 1 |
JavaScript sözdizimi: | nesne .style.gridAutoColumns="120px" |
Tarayıcı Desteği
Tablodaki sayılar, özelliği tam olarak destekleyen ilk tarayıcı sürümünü belirtir.
Property | |||||
---|---|---|---|---|---|
grid-auto-columns | 57 | 16 | 52 | 10 | 44 |
CSS Sözdizimi
grid-auto-columns: auto|max-content|min-content|length;
Mülk değerleri
Value | Description | Play it |
---|---|---|
auto | Default value. The size of the columns is determined by the size of the container | |
fit-content() | ||
max-content | Sets the size of each column depending on the largest item in the column | |
min-content | Sets the size of each column depending on the smallest item in the column | |
minmax(min.max) | Sets a size range greater than or equal to min and less than or equal to max | |
length | Sets the size of the columns, by using a legal length value. Read about length units | |
% | Sets the size of the columns, by using a percent value |
İlgili Sayfalar
CSS Eğitimi: CSS Izgara Düzeni
CSS Referansı: grid-auto-rows özelliği