styles more efficient

including adding inline block and deleting unnecessary spans and divs.