Changes padding to follow grid sizes