26 lines
430 B
CSS
26 lines
430 B
CSS
![]() |
container {
|
||
|
display: flex;
|
||
|
}
|
||
|
|
||
|
table {
|
||
|
width: 70%;
|
||
|
}
|
||
|
|
||
|
table,
|
||
|
th,
|
||
|
td {
|
||
|
border: solid black 1px;
|
||
|
border-collapse: collapse;
|
||
|
}
|
||
|
|
||
|
.highlight {
|
||
|
background-color: lightgoldenrodyellow;
|
||
|
}
|
||
|
/* from table element's table class on 8th child th element and add 1 each time */
|
||
|
table.table th:nth-child(1n + 9) {
|
||
|
background-color: lightgoldenrodyellow;
|
||
|
}
|
||
|
table.table td:nth-child(1n + 9) {
|
||
|
background-color: lightgoldenrodyellow;
|
||
|
}
|