table { width: 50%; border: 1px; border-color: #000; border-collapse: collapse; } thead tr { background-color: #696969; color: #fff; text-align: center; } tbody td:nth-child(3n), td:nth-child(4n) { text-align: center; } tbody td:nth-child(5n) { text-align: right; } tbody tr:nth-child(2n){ background-color: #eee; } tbody tr:nth-child(2n+1){ background-color: #fff; }