I need to apply a style to an element if a specific class is NOT a child of the element.
<table class="printlist" style="width:100%">
<tbody>
<tr class="list_wanted0"><td>Whatever...</td></tr>
<tr class="list_wanted1"><td>
<div class="journal">
<table><tbody>
<tr><td style="width: 9em">2011-03-12 09:36</td></tr>
</tbody></table>
</div>
</td></tr>
</tbody>
</table>
The example above is reduced to a minimum to demonstrate the structure.
What I want is to have the :Hover properties only to apply .printlist tr if <tr> has NO .journal child.
The .list_wanted0 and .list_wanted1 can not be used to select the .journal, it can be other class names there.
The CSS I have tried is:
.printlist tr:Hover * :not(itemjournal) {
color: #000;
background: #aaa
}
Obviously, this doesn't work as I intended to.
If you need more information, don't hesitate to ask,
Thank you.