table layout

Changed the layout to use display: table and table-cell for more
consistent positioning and alignment.