CSS nested not selector - HTML CSS CSS Selector

HTML CSS examples for CSS Selector:not

Description

CSS nested not selector

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
ul li:not(.one):not(.two) {
   color:Chartreuse;
}
</style> <!--from  w  w  w.  j a v  a  2 s .c o  m-->
 </head> 
 <body> 
  <ul> 
   <li class="one">Lorem</li> 
   <li class="two">Lor</li> 
   <li class="three">Lorem</li> 
  </ul>  
 </body>
</html>

Related Tutorials