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