I want to style an image that does not have an "aside" above it. I want the styling to apply to all img elements in something like this:
<div class='content'>
(assorted other divs and containers in here)
<img src='http://example.com'>
(could be more <img> elements in here too)
</div>
But I do NOT want it to apply here:
<div class='content'>
(assorted other divs and containers in here)
<aside class='quote'>
(assorted other divs and containers in here)
<img src='http://example.com'>
</aside>
</div>
This is the CSS I'm trying, but no luck...
.content :not(aside.quote) img { width:100%; }
Since there can be assorted other divs and containers in the structure, I can't assume the img will be the first child (or NOT the first child).
How can I get the right selector to do this?