Style button with border and hover active state - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Button

Description

Style button with border and hover active state

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">
button.css3button {
   padding:0.6em;
   background-color:Chartreuse;
   border:5px outset yellow;
   color:blue;
   border-radius:5px;
}

button.css3button:hover {
   background-color:pink;
}

button.css3button:active {
   color:WhiteSmoke;
   border:5px inset OrangeRed;
}

body {<!-- ww  w.  j a v  a  2 s  .c o m-->
   margin:2em;
   text-align:center;
}
</style> 
 </head> 
 <body> 
  <button type="button" class="css3button">PRESS</button>  
 </body>
</html>

Related Tutorials