I'm looking for a way to combine two css selectors. In my case, ':not' and ':first-of-type'. This is my code:
<div id="holder">
<div class="image mobileOnly">...</div>
<div class="image">...</div>
<div class="image">...</div>
<div class="image">...</div>
<!-- ... more images ... -->
</div>
I'd like to select the first div.image that's doesn't contain the 'mobileOnly' class.
I tried the following combinations (in different orders):
#holder .image:not(.mobileOnly):first-of-type {
border: 5px solid #0a85d4;
}
#holder .image:not(.mobileOnly) :first-of-type {
border: 5px solid #0a85d4;
}
Is this possible at all?