table, th, td {
    border: 1px solid gray;
}

table {
    border-collapse: collapse;
    width: 15%;
    height: auto;
    max-width: 400px;
    margin: 1% auto auto 0%;
}

th:first-child {
  width: 40%;
}

th:nth-child(2) {
  width: 30%;
}

th:nth-child(3) {
  width: 30%;
}

th, td {
    padding: 1% 0.5% 1% 0.5%;
}

tr:nth-child(3n) {
    background-color: white;
}

tr:nth-child(3n+1) {
    background-color: gray;
}

tr:nth-child(3n+2) {
    background-color: lightgray;
}

thead tr th {
    background-color: white;
}