Adding hover border - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover Border

Description

Adding hover border

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">

#homeheader a:visited, #homeheader a{
   text-decoration:none;<!--from   ww  w .  j a v a 2 s  .c o  m-->
   color:black;
   border-bottom:1px solid #102447;
}
#homeheader a {
   margin-left: 1px;
   margin-right: 6px;
}
#homeheader a:hover{
   margin-left: 0;
   margin-right: 5px;
   background-color:#D0DDF2;
   border-radius:5px;
   border:1px solid #102447;
}
#homeheader li{
   padding:0;
   margin:0px 10px;
   display:inline;
   font-size:1em;
}


      </style> 
 </head> 
 <body> 
  <div id="homecontainer"> 
   <div id="homeheader"> 
    <ul> 
     <li> <a href="#">Features</a> </li> 
     <li> <a href="#">Demos</a> </li> 
     <li> <a href="#">Feedback Analysis</a> </li> 
     <li> <a href="#">Free Account</a> </li> 
    </ul> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials