Why can't I do div:not(.wrapper2 .exception)
? Ie. all divs except .wrapper2 .exception
.
http://jsfiddle.net/frank_o/4swjmhtr/
HTML:
<div class="wrapper1">
<div>
<p>Hi</p>
</div>
<div class="exception">
<p>Hi</p>
</div>
</div>
<div class="wrapper2">
<div>
<p>Hi</p>
</div>
<div class="exception">
<p>Hi</p>
</div>
</div>
CSS:
div:not(.wrapper2 .exception) {
background: blue;
color: white;
}