Propriedade CSS grid-auto-rows
Exemplo
Defina um tamanho padrão para as linhas em uma grade:
.grid-container {
display: grid;
grid-auto-rows: 150px;
}
Definição e uso
A grid-auto-rows
propriedade define um tamanho para as linhas em um contêiner de grade.
Esta propriedade afeta apenas as linhas com o tamanho não definido.
Valor padrão: | auto |
---|---|
Herdado: | não |
Animavel: | sim. Leia sobre animáveis |
Versão: | Módulo de Layout de Grade CSS Nível 1 |
Sintaxe JavaScript: | objeto .style.gridAutoRows="60px" |
Suporte ao navegador
Os números na tabela especificam a primeira versão do navegador que oferece suporte total à propriedade.
Property | |||||
---|---|---|---|---|---|
grid-auto-rows | 57 | 16 | 52 | 10 | 44 |
Sintaxe CSS
grid-auto-rows: auto|max-content|min-content|length;
Valores de propriedade
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 |
Páginas relacionadas
Tutorial CSS: Layout de grade CSS
Referência CSS: A propriedade grid-auto-columns