I have a table with class \'table-hover\'. The default hover over color is a white / light grey. How do I change this color?
I\'ve tried overwriting the default by ad
This was the most simple way to do it imo and it worked for me.
.table-hover tbody tr:hover td {
background: aqua;
}
Not sure why you would want to change the heading color to the same hover color as the rows but if you do then you can use the above solutions. If you just want t
Try Bootstrap’s .table-hover
class to implement hoverable rows, for example
<table class="table table-hover">
...
</table>
.table-hover tbody tr:hover td {
background: #ffffff;
}
Instead of changing the default table-hover class, make a new class ( anotherhover ) and apply it to the table that you need this effect for.
Code as below;
.anotherhover tbody tr:hover td { background: CornflowerBlue; }
Give this a try:
.table-hover tbody tr:hover td, .table-hover tbody tr:hover th {
background-color: #color;
}
try:
.table-hover > tbody > tr.active:hover > th {
background-color: #color;
}