In CSS, can I select an element which doesn't contain another element?
For example:
<div>
<p>ABC</p>
<p>
<q>123</q>
</p>
<p>ABC</p>
</div>
I want to set css for each p
element, but not for the element which contains q
.
Is this possible?