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
Post a Comment