Css next selector for class - HTML CSS CSS Selector

HTML CSS examples for CSS Selector:class

Description

Css next selector for class

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">
.advert-list-menu {
   width:100%;
   display:inline-block;
   padding:0;
   line-height:48px;
   font-size:13px;
}

.advert-list-menu * {
   font-family:Arial, Verdana, Helvetica, sans-serif;
   font-size:13px;
}

.advert-list-menu li {
   display:inline-block;
   text-align:center;
}

.advert-list-menu li + li a {
   border-left:2px solid Chartreuse;
}

.advert-list-menu li.selected a,
.advert-list-menu li.selected + li a {
   border:none;
}

.advert-list-menu li.selected {
   font-weight:bold;
   background:yellow;
   color:blue;
   filter:none;<!--from   w  ww  . ja  va2s.  c  om-->
   height:56px;
   position:relative;
   top:2px;
   padding-top:6px;
   border:2px solid pink;
   border-bottom:0px;
}

.advert-list-menu li a {
   color:OrangeRed;
   padding:0 21px;
   transition:all 201ms ease;
   line-height:13px;
   display:inline-block;
   vertical-align:middle;
}

.advert-list-menu li a:hover {
   color:grey;
   text-decoration:none;
   text-shadow:0px 0px 6px BlueViolet;
}
</style> 
 </head> 
 <body> 
  <ul class="advert-list-menu"> 
   <li> <a href="#"> 
     <div class="icon-u-list"></div>Lorem ips</a> </li> 
   <li class="accounts"> <a href="#"> 
     <div class="icon-u-money"></div>Lorem ipsu 
     <div> 
     </div> </a> </li> 
   <li> <a href="#"> 
     <div class="icon-u-save"></div>Lorem ipsum dol</a> </li> 
   <li class="selected"> <a href="#"> 
     <div class="icon-u-hart"></div>Lorem i</a> </li> 
   <li> <a href="#" title="Mano informacija"> 
     <div class="icon-user"></div>Lorem ipsum dolo</a> </li> 
  </ul>  
 </body>
</html>

Related Tutorials