Put a solid border around a button to show it has focus - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Button

Description

Put a solid border around a button to show it has focus

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

#buttons{<!--from ww w  . j  a  v  a 2s . c  o  m-->
   float:right;
   position:relative;
   left:-50%;
   text-align:left;
}
#buttons ul{
   list-style:none;
   position:relative;
   left:50%;
   width: 100%;
}
#buttons li{float:left;position:relative; font-size: 23px;}/* ie needs position:relative here*/
#buttons a{
   text-decoration:none;
   margin:10px;
   background:red;
   float:left;
   border:2px outset Red;
   color:#fff;
   padding:2px 5px;
   text-align:center;
   white-space:nowrap;
}
#buttons a:hover{ border:2px solid blue;color:red;background:#f2f2f2;}
.table-con {
   margin: 0 auto;
   clear: both;
   width: 23%;
}


      </style> 
 </head> 
 <body> 
  <div id="buttons"> 
   <ul> 
    <li> <a href="#"> Home</a> </li> 
    <li> <a href="#">Add Product </a> </li> 
    <li> <a href="#">Add Product Image</a> </li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials