Applied a CSS class to the grids