set height for grid item css code example Example: css grid make all rows same height grid-auto-rows: 1fr;