Skip to content

Commit

Permalink
add td background color
Browse files Browse the repository at this point in the history
  • Loading branch information
siongui committed Apr 4, 2023
1 parent a50b769 commit 97a981a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions theme/styling/style.scss
Expand Up @@ -194,4 +194,16 @@ a {
clear: both;
}
}

// https://stackoverflow.com/a/28186676
// https://www.w3schools.com/cssref/sel_nth-child.php
tr > td:first-child,th:first-child {
background-color: None;
}
tr > td:nth-child(2),th:nth-child(2) {
background-color: Azure;
}
tr > td:last-child,th:last-child {
background-color: Cornsilk;
}
}

0 comments on commit 97a981a

Please sign in to comment.