html - Using exceptions for some objects in CSS -


i have css code tables:

.table-hover>tbody>tr:hover {     background-color: #f36f25;     color:#ffffff; } 

i want able make rows not use code on hover.

how can make exception rows in tables?

give them identify them (e.g. class attribute), use negation pseudo-class selector (:not()) filter them out:

<tr></tr> <tr class="notthisone"></tr> <tr></tr> 
.table-hover>tbody>tr:not(.notthisone):hover {     ... } 

Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -