table,td,tr {border: 1px outset; } tr {text-align: center;} tr:nth-child(2) td:nth-child(2) {color:red; } tr:nth-child(2) td:nth-child(3) {color:red; } tr:nth-child(2) td:nth-child(4) {color:red; } tr:nth-child(2) td:nth-child(6) {color:red; } tr:nth-child(3) td:nth-child(2) {color:red; } tr:nth-child(3) td:nth-child(4) {color:red; } tr:nth-child(4) td:nth-child(2) {color:blue; } tr:nth-child(4) td:nth-child(5) {color:blue; } tr:nth-child(5) td:nth-child(2) {color:red; } tr:nth-child(5) td:nth-child(3) {color:bule; } tr:nth-child(5) td:nth-child(5) {color:blue; } tr:nth-child(5) td:nth-child(6) {color:blue; }