Padding with <li> line and maintain left-border - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Element

Description

Padding with <li> line and maintain left-border

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">
#middle_left ul {
   list-style:none;
   padding-top:6%;
   padding-left:16px;
   font-family:'Gill Sans', Verdana, Arial, 'Liberation Sans', FreeSans, sans-serif;
   font-size:2.6em;
}

#middle_left ul div {
   padding-left:16px;
   text-indent:-16px;<!-- ww  w  .  j  a v  a 2 s.  c  o m-->
}

#middle_left ul div:hover {
   padding-left:16px;
   text-indent:-16px;
   border-left:4px solid Chartreuse;
}

#middle_left ul a {
   padding-left:16px;
   text-decoration:none;
   color:yellow;
}

#middle_left ul a:hover {
   padding-left:13px;
   color:blue;
}
</style> 
 </head> 
 <body> 
  <div id="middle_left"> 
   <ul> 
    <li> 
     <div> 
      <a href="#">Lorem ips</a> 
     </div> </li> 
    <li> 
     <div> 
      <a href="#">Lor</a> 
     </div> </li> 
    <li> 
     <div> 
      <a href="#">Lorem ipsum</a> 
     </div> </li> 
    <li> 
     <div> 
      <a href="#">Lorem ipsum</a> 
     </div> </li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials