CSS hover block li element with border round - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover Border

Description

CSS hover block li element with border round

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   ww  w .j  a v  a2 s .co m-->
   list-style:none outside none;
   margin:0;
   padding:0;
}

#drop {
   background:Chartreuse;
   top:41px;
   left:0px;
   width:181px;
   border:2px solid yellow;
   border-radius:16px;
   -moz-border-radius:16px;
   -webkit-border-radius:16px;
   -ms-border-radius:16px;
   -o-border-radius:16px;
   overflow:hidden;
}

#drop li a {
   color:blue;
   display:block;
   padding:6px 11px;
   font-family:Helvetica, Arial, sans-serif;
   font-size:14px;
   text-decoration:none;
}

#drop li a:hover {
   background:pink;
   color:OrangeRed;
}
</style> 
 </head> 
 <body> 
  <div id="drop"> 
   <ul id="menu2"> 
    <li> <a href="#home">Lorem </a> </li> 
    <li> <a href="#about">Lorem </a> </li> 
    <li> <a href="#skills">Lorem </a> </li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials