.table thead>tr>th { text-align: center; } .table tbody>tr>td { text-align: center; vertical-align: middle; } #navlist li { display: inline; list-style-type: none; padding-right: 20px; }