table { border-collapse: collapse; width: 100%; } th, td { padding: 15px; text-align: left; } thead { background-color: #04AA6D; color: white; } tbody tr:nth-child(odd) { background-color: #f2f2f2; } tbody tr:hover { background: #01cf00; }