update grid to css syntax