changed code to add padding to right-hand block elements