css edited to flexible grids