I need CSS help

Ren
Thu, 23 Jul 2020 16:44:16 +0000

Okay, then what I gave above should work, just removing the .table-striped stipulation for the odd lines. So:

tr {
   background-color: #404040
}

tr:nth-of-type(odd) {
   background-color: #353535;
}

th {
   background-color: #2b2b2b;
   color: #d8d8d8;
   font-size: 16px;
}

thead th {
   border-bottom: 2px solid #1f1f1f;
}

tbody th {
   border-top: 1px solid #1f1f1f;
   border-left: 1px solid #1f1f1f;
}

td {
   border-top: 1px solid #292929;
}

That should make all tables that way, unless you have something else later and/or more specific in your css changing it. Also, I definitely recommend using variables for defining your colours – it helps to keep things consistent, and you can easily change a given shade everywhere at once, then.