table {
  border-collapse: collapse;
  font-family: sans-serif;
  border: 1px solid #ccc;
}

td, th {
  text-align: center;
  padding: 6px 12px;
}

th {
  background: #555;
  color: #fff;
}

td:nth-child(odd) {
  background: #eef;
}

tr:nth-child(odd) td {
  background: #fee;
}

tr:nth-child(odd) td:nth-child(odd) {
  background: #fef;
}