This question was asked before, but with slightly different cases. In my case, I have body a:hover
style defined and I want to disable it for some elements. According to a suggested answer to this question I have tried:
CSS:
body:not(.nohover a) a:hover {
color: #006699;
}
HTML:
<div class="nohover">
<a href="mylink.html">My link text</a>
</div>
But it did not work. Does anyone know if it can be done with the :not
pseudo-class? Or in a different way?
Edit: I think dippas was not wearing his reading glasses when marking this question as a duplicate; even stronger as an "exact duplicate". Fortunately, people like Edmund Reed tried to be helpful instead, and helped me answering my question.