Padding for links vertical in nav bar - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Nav Bar

Description

Padding for links vertical in nav bar

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">
ul.menu {
   list-style-type:none;
   list-style-position:inside;
   margin:0;
   padding:0;
   width:105px;
   background-color:Chartreuse;
   font-family:'Roboto Condensed', sans-serif;
   font-size:21px;
   line-height:31px;
   font-weight:701;
}

.menu li {
   margin-bottom:6px;
   padding:4px;
}

.menu li a, .menu li a:visited {
   color:yellow;
   text-decoration:none;<!--from  w ww  .  j  av a2  s.c  o  m-->
}

.menu li:hover, menu li:active {
   background-color:blue;
}
</style> 
 </head> 
 <body> 
  <ul class="menu"> 
   <li> <a href="#about">Lorem</a> </li> 
   <li> <a href="#contact">Lorem i</a> </li> 
   <li> <a href="#top">Lor</a> </li> 
  </ul>  
 </body>
</html>

Related Tutorials