Background div menu, hover to show text - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu Hover

Description

Background div menu, hover to show text

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 {<!--from   w  w w  . ja  v a  2  s . c  o  m-->
   list-style:none;
}

.menu {
   width:auto;
   line-height:2;
   background-color:Chartreuse;
   margin:0;
   padding:0;
   border:0;
   list-style:none;
   line-height:2;
   display:block;
   position:relative;
   -webkit-box-sizing:border-box;
   -moz-box-sizing:border-box;
   box-sizing:border-box;
}

.menu:after {
   content:"";
   display:table;
   clear:both;
}

.menu>ul>li {
   float:left;
}

.menu>ul>li>a {
   padding:21px;
   font-size:13px;
   text-decoration:none;
   text-transform:uppercase;
   color:yellow;
   -webkit-transition:color .3s ease;
   -moz-transition:color .3s ease;
   -ms-transition:color .3s ease;
   -o-transition:color .3s ease;
   transition:color .3s ease;
}

.menu>ul>li:hover>a,
.menu>ul>li.active>a {
   color:blue;
}
</style> 
 </head> 
 <body> 
  <header class="menu-top"> 
   <div class="menu"> 
    <ul> 
     <li> <a>Lore</a> </li> 
     <li> <a>Lorem ips</a> </li> 
     <li> <a>Lorem i</a> </li> 
    </ul> 
   </div> 
  </header>  
 </body>
</html>

Related Tutorials