.container { padding-top: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center; } .tile { width: 70%; margin: 5px; padding: 5px; } .tile a { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: black; } .itemheading { padding-top: 10px; margin-bottom: 5px; } .itemtext { margin-top: 5px; padding-bottom: 15px; } #first { background-color: #ed1012; } #second { background-color: #3278b3; } #third { background-color: #167c80; } #fourth { background-color: #777777 } table, th, td { border: 1px solid black; }