footer > p{ text-align:center; } table, th, td { border: 1px solid grey; border-collapse: collapse; } table { width:100%; } th, td { width:auto; text-align:center; word-wrap: break-word; margin: 1em 1em 1em 1em; }