Issue on CSS 3 Selecting All But Not the Last - HTML CSS CSS Selector

HTML CSS examples for CSS Selector:not

Description

Issue on CSS 3 Selecting All But Not the Last

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">
.box>.row:not(:last-child) {
   color:Chartreuse;
}
</style> <!--from  w  w  w.  jav  a 2  s  . co  m-->
 </head> 
 <body> 
  <ul class="box"> 
   <li class="row">Lor</li> 
   <li class="row">Lor</li> 
   <li class="row">Lorem</li> 
  </ul>  
 </body>
</html>

Related Tutorials