I'm trying to apply css for all spans in a specific class but exclude some of them, but the following code doesn't work:
.basket-items li span:not(.name,.count){border:solid 1px #ddd; border-radius:50%;}
I have always used the :not
just like :not(:empty)
. doesn't it accept css classes?
This is the html:
<ul class="basket-items">
<li>
<span class="ion-android-close"></span>
<span class="name"></span>
<span class="ion-plus"></span>
<span class="count"></span>
<span class="ion-minus"></span>
</li>
</ul>
P.S.: note that in here excluding classes are meant which produce different result than the similar question like: Can I have multiple :not() selectors?