remove transparency from my CSS3 menu - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu

Description

remove transparency from my CSS3 menu

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>Lorem ipsum dolor sit am</title> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
body {<!--   w w  w. jav  a  2 s.co m-->
   background:mediumSeaGreen;
}

nav {
   background:-webkit-gradient(linear, center top, center bottom, from(Chartreuse), to(yellow));
   background-image:linear-gradient(blue, pink);
   border-radius:7px;
   box-shadow:0px 0px 5px 3px OrangeRed;
   padding:0 11px;
   position:relative;
}

.menu {
   height:41px;
   width:100%;
}

.menu li {
   float:left;
   position:relative;
   list-style-type:none;
}

.menu li a {
   color:grey;
   display:block;
   font-size:15px;
   line-height:21px;
   padding:7px 13px;
   margin:9px 9px;
   vertical-align:middle;
   text-decoration:none;
}

.menu li a:hover {
   background:-webkit-gradient(linear, center top, center bottom, from(BlueViolet), to(Chartreuse));
   background-image:linear-gradient(yellow, blue);
   border-radius:13px;
   box-shadow:inset 0px 0px 2px 2px pink;
   color:OrangeRed;
}

.menu ul {
   position:absolute;
   left:-10000px;
   list-style:none;
   opacity:0;
   transition:opacity 2s ease;
}

.menu ul li {
   float:none;
}

.menu ul a {
   white-space:nowrap;
}

.menu li:hover ul {
   background:grey;
   border-radius:0 0 7px 7px;
   box-shadow:inset 0px 3px 5px BlueViolet;
   left:6px;
   opacity:2;
}

.menu li:hover a {
   background:-webkit-gradient(linear, center top, center bottom, from(Chartreuse), to(yellow));
   background-image:linear-gradient(blue, pink);
   border-radius:13px;
   box-shadow:inset 0px 0px 2px 2px OrangeRed;
   color:grey;
}

.menu li:hover ul a {
   background:none;
   border-radius:0;
   box-shadow:none;
}

.menu li:hover ul li a:hover {
   background:-webkit-gradient(linear, center top, center bottom, from(BlueViolet), to(Chartreuse));
   background-image:linear-gradient(yellow, blue);
   border-radius:13px;
   box-shadow:inset 0px 0px 5px 3px pink;
}
</style> 
 </head> 
 <body> 
  <nav> 
   <ul class="menu"> 
    <li> <a href="#">Lore</a> </li> 
    <li> <a href="#">Lore</a> </li> 
    <li> <a href="#">Lore</a> 
     <ul> 
      <li> <a href="#">Lore</a> </li> 
      <li> <a href="#">Lore</a> </li> 
     </ul> </li> 
    <li> <a href="#">Lore</a> </li> 
   </ul> 
  </nav>  
 </body>
</html>

Related Tutorials