Adding a drop shadow to drop down menu secondary links - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu Dropdown

Description

Adding a drop shadow to drop down menu secondary links

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">
#header {<!--from   www  .  j a v  a2 s  . c om-->
   height:100px;
   margin-left:auto;
   margin-right:auto;
   text-align:center;
}

#content {
   max-width:701px;
   margin-left:auto;
   margin-right:auto;
   padding:21px;
}

#footer {
   height:86px;
   padding-top:41px;
   margin-left:auto;
   margin-right:auto;
   text-align:center;
}

#menu, #menu ul {
   margin:0 auto;
   padding:0;
}

#menu {
   display:inline-block;
   min-width:601px;
   list-style:none;
   border-top:2px solid Chartreuse;
   border-left:2px solid yellow;
   border-bottom:2px solid blue;
}

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

#menu>li:hover>ul {
   display:block;
}

#menu>li>ul {
   display:none;
   position:absolute;
}

#menu li a {
   display:block;
   padding:11px 11px;
   text-decoration:none;
   font-weight:bold;
   white-space:nowrap;
}

#menu li a:hover {
   color:pink;
   box-shadow:11px 11px 6px WhiteSmoke;
}
</style> 
 </head> 
 <body> 
  <ul id="menu"> 
   <li> <a href="#">Home</a> </li> 
   <li> <a href="#">Kandi</a> 
    <ul> 
     <li> <a href="#">Claim Kandi</a> </li> 
    </ul> </li> 
   <li> <a href="#">Events</a> </li> 
   <li> <a href="#">Artists</a> </li> 
   <li> <a href="#">Community</a> </li> 
   <li> <a href="#">Merchandise</a> </li> 
  </ul>  
 </body>
</html>

Related Tutorials