grid footer and pagination css apply