Vertically centered bullets on a horizontal list - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Horizontal

Description

Vertically centered bullets on a horizontal list

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">
#main-navigation ul li {
   display:inline;
}

#main-navigation ul li a {
   font-family:'Miso', 'Helvetica Neue',Helvetica,Arial,sans-serif;
   display:inline-block;
   font-size:2.26em;
   margin-right:7%;
   text-align:right;
   text-transform:uppercase;
   background:url('https://www.java2s.com/style/demo/Google-Chrome.png') no-repeat 100% 51%;
   padding-right:5%;
   padding-top:3px;
   text-decoration:none;<!--  ww w. j  a  v a2 s  .  c  om-->
}

#main-navigation ul li a:hover {
   color:Chartreuse;
   text-decoration:none;
   background:url('https://www.java2s.com/style/demo/Google-Chrome.png') no-repeat 100% 51%;
}
</style> 
 </head> 
 <body> 
  <div id="main-navigation"> 
   <ul> 
    <li> <a href="">Lorem </a> </li> 
    <li> <a href="">Lorem ipsum dolor </a> </li> 
    <li> <a href="">Lorem </a> </li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials