Before pseudo elements between <li> with <a> tag - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Element

Description

Before pseudo elements between <li> with <a> tag

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">
.header-level-1 .clearlist li:not(:first-child)  a::before {
   content:"|";<!-- ww w  .j  a v  a2s .  co m-->
}

.header-level-1 .clearlist li {
   list-style:none;
   display:inline-block;
}
</style> 
 </head> 
 <body> 
  <div class="header-level-1"> 
   <!-- Login --> 
   <ul class="clearlist"> 
    <li> <a href="#">L</a> </li> 
    <li> <a href="#">L</a> </li> 
    <li> <a href="#">L</a> </li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials