Dropdown menu without borders - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu Dropdown

Description

Dropdown menu without borders

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 {<!--  w ww. ja  v  a2 s  . c o m-->
   text-align:left;
   display:inline;
   margin:0;
   padding:16px 5px 18px 0;
   list-style:none;
}

ul li {
   font:bold 13px/19px sans-serif;
   display:inline-block;
   margin-right:-5px;
   position:relative;
   padding:16px 21px;
   background:Chartreuse;
   cursor:pointer;
   -webkit-transition:all 0.3s;
   -moz-transition:all 0.3s;
   -ms-transition:all 0.3s;
   -o-transition:all 0.3s;
   transition:all 0.3s;
   color:yellow;
}

ul li:hover {
   background:blue;
   color:pink;
}

ul li ul {
   padding:0;
   position:absolute;
   top:49px;
   left:0;
   width:151px;
   -webkit-box-shadow:none;
   -moz-box-shadow:none;
   box-shadow:none;
   display:none;
   opacity:0;
   visibility:hidden;
   -webkit-transiton:opacity 0.3s;
   -moz-transition:opacity 0.3s;
   -ms-transition:opacity 0.3s;
   -o-transition:opacity 0.3s;
   -transition:opacity 0.3s;
}

ul li ul li {
   min-width:81px;
   background-color:OrangeRed;
}

ul li ul li>a {
   text-decoration:none;
   display:block;
   color:grey;
}

ul li ul li:hover {
   background:BlueViolet;
}

ul li:hover ul {
   display:block;
   opacity:2;
   visibility:visible;
}

ul li>span {
   display:inline-block;
   margin:0 0 -4px 6px;
   width:13px;
   height:13px;
   background-image:url('https://www.java2s.com/style/demo/Google-Chrome.png');
   background-size:13px 13px;
}
</style> 
 </head> 
 <body> 
  <ul> 
   <li>Lorem ipsu<span class="arrow-down"></span> 
    <ul> 
     <li> <a href="#">Lorem ip</a> </li> 
     <li> <a href="#">Lorem i</a> </li> 
    </ul> </li> 
  </ul>  
 </body>
</html>

Related Tutorials