With Bootstrap class table-striped
, every other row in my table has a background colour equal to #F9F9F9
. How can I change this colour?
.table-striped > tbody > tr:nth-child(2n+1) > td, .table-striped > tbody > tr:nth-child(2n+1) > th {
background-color: red;
}
add this line into your style.css after main bootstrap.css or you could use (odd) or (even) instead of (2n+1)