Assuming I have a list like this one:
<ul>
<li class="hidden">Horse</li>
<li>Bear</li>
<li>Cat</li>
</ul>
Is it possible to get the first li item that doesn't has the class .hidden
, I tried this and many others but it didn't work:
li:not(.hidden):nth-child(1) {
/* ... */
}