CSS Sprite Navigation Issue - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Nav Bar

Description

CSS Sprite Navigation Issue

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">
#mainNav ul {<!--from ww w . ja  v  a  2 s  .c o  m-->
   display:block;
   width:201px;
}

#mainNav li {
   list-style-type:none;
   background:Chartreuse;
   margin:6px 0;
   padding:6px 0 6px 6px;
}

#mainNav li.current {
   background:yellow;
}

#mainNav ul li a {
   color:blue;
   font-size:13px;
   text-decoration:none;
}

#mainNav li:hover {
   background:pink;
   text-decoration:none;
}
</style> 
 </head> 
 <body> 
  <div id="mainNav"> 
   <ul> 
    <li class="current"> <a href="#">Lor</a> </li> 
    <li> <a class="" href="#">Lor</a> </li> 
    <li> <a class="" href="#">Lorem</a> </li> 
    <li> <a class="" href="#">Lore</a> </li> 
    <li> <a class="" href="#">Lore</a> </li> 
    <li> <a class="" href="#">Lor</a> </li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials