tr:first-child {background: #345;} th:first-child {background:#980;} td {text-align: right; width: 4em;} td:first-child {color: red; ; width: 4em; text-align: center;} th:nth-child(1) { color:black ;background:red; } th:nth-child(2) { color: black;background:blue; } th:nth-child(3) { color: black;background:green; } th:nth-child(4) { color: black;background:#daa520; } th:nth-child(5) { color: black;background:pink; } th:nth-child(6) { color:black ;background:yellow; } th:nth-child(7) { color: black;background:skyblue;} .aka{ color:red;} .ao{color:blue;} table, tr, td ,th{border: 1px solid; empty-cells: show}