h1 { font-family: sans-serif; } table { border-collapse: collapse; border: 2px solid gray; margin: 1rem 0px; } tr { background-color: white; } tbody>tr:nth-of-type(odd) { background-color: cornsilk; } th, td { border: 1px solid darkslateblue; padding: 2px 3px; } thead th { background-color: darksalmon; } th { text-align: left; padding: 4px 6px; white-space: nowrap; } th.ttitle { text-align: center; }