css grid last element center code example Example: grid center last row If you need that, think about flexbox instead of grid !