using css to form grid. using jquery for events.