CSS :not selector usage - HTML CSS CSS Selector

HTML CSS examples for CSS Selector:not

Description

CSS :not selector usage

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <style>
div:not(.a):not(.b) {
   color:Chartreuse;
}
</style> <!--from  w  ww.j  a  va  2  s . com-->
 </head> 
 <body translate="no"> 
  <div class="a">
    Lorem ipsum 
  </div> 
  <div class="b">
    Lorem ipsum 
  </div> 
  <div class="b a">
    Lorem ipsum 
  </div> 
  <div class="c">
    Lorem i 
  </div>  
 </body>
</html>

Related Tutorials