I have the following css that the last-child should change, which does not have the "myClass" class, but I cannot get it to work.
Any ideas I'm wrong about?
ul li:not(.myClass):last-child a { font-style:italic; }
Example html for query:
<ul> <li><a href="#">one</a></li> <li><a href="#">two</a></li> <li><a href="#">three</a></li> <li class="myClass"><a href="#">Extra</a></li> </ul>
I want to apply css to li three ...
source share