CSS3 Transform in menu hover - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu Hover

Description

CSS3 Transform in menu hover

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">
nav {<!--   www.j ava 2s.com-->
   text-align:center;
   width:100%;
}

ul li {
   list-style:none;
   text-align:center;
   display:inline-block;
}

.button {
   text-decoration:none;
   color:Chartreuse;
   padding:11px 21px;
   display:block;
   text-align:center;
}

.button:hover {
   -ms-transform:translateY(11px);
   -webkit-transform:translateY(11px);
   transform:translateY(11px);
   background-color:yellow;
}
</style> 
 </head> 
 <body> 
  <nav> 
   <ul> 
    <li> <a target="_parent" href="index.php" class="button">Lore</a> </li> 
    <li> <a target="_parent" href="about.html" class="button">Lorem</a> </li> 
    <li> <a target="_parent" href="login/reg.php" class="button">Lorem ip</a> </li> 
    <li> <a target="_parent" href="private/" class="button">Lorem </a> </li> 
    <li> <a target="_parent" href="chat.php" class="button">Lore</a> </li> 
    <li> <a target="_parent" href="http://yo.hostei.com" class="button">Lorem ipsum d</a> </li> 
    <li> <a target="_parent" href="" class="button">Lorem</a> </li> 
   </ul> 
  </nav>  
 </body>
</html>

Related Tutorials