Vertical text align inside LI - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Alignment

Description

Vertical text align inside LI

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">
span {<!--  ww w  .  j a  va2  s.  c om-->
   color:Chartreuse;
   font-size:31px;
}

#leftmenu {
   margin-left:100px;
}

#leftmenuidfrmslt
 {
   padding-left:0;
   margin-left:0;
   border-bottom:2px dotted yellow;
   width:301px;
}

#leftmenuidfrmslt li
 {
   text-align:center;
   list-style:none;
   margin:0;
   padding:0.26em;
   border-top:2px dotted blue;
   height:46px;
   line-height:46px;
}

#leftmenuidfrmslt li:hover {
   background-color:pink;
}

a {
   text-decoration:none;
}
</style> 
 </head> 
 <body> 
  <div id="leftmenu"> 
   <ul id="leftmenuidfrmslt"> 
    <a href="#"> <li> <span class="flaticon-smart"></span>Lorem ipsu</li> </a> 
    <a href="#"> <li>Lorem ip</li> </a> 
    <a href="#"> <li>Lorem ips</li> </a> 
    <a href="#"> <li>Lorem ips</li> </a> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials