Used a combination of display:block and display:inline-block to achieve the desired layout.