Select all classes after the first of its type - HTML CSS CSS Selector

HTML CSS examples for CSS Selector:after

Description

Select all classes after the first of its type

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">
.homeowner-rating:not(.main-gallery)<!--  w  w w  .  jav  a 2  s  .  c o  m-->
 {
   color:Chartreuse;
}
</style> 
 </head> 
 <body> 
  <section class="main-gallery homeowner-rating content-block"> 
   <p>Lore</p> 
  </section> 
  <section class="homeowner-rating content-block"> 
   <p>Lore</p> 
  </section> 
  <section class="homeowner-rating content-block"> 
   <p>Lore</p> 
  </section> 
  <section class="homeowner-rating content-block"> 
   <p>Lore</p> 
  </section>  
 </body>
</html>

Related Tutorials