Styling buttons with hover effect - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button hover

Description

Styling buttons with hover effect

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style>

.button {<!-- w  w  w.  jav a  2s  .  com-->
   display: inline-block;
   padding: 15px 25px;
   font-size: 24px;
   cursor: pointer;
   text-align: center;
   text-decoration: none;
   outline: none;
   color: #fff;
   background-color: #4CAF50;
   border: none;
   border-radius: 15px;
   box-shadow: 0 9px #999;
}
.button:hover {background-color: #3e8e41}
.button:active {
   background-color: #3e8e41;
   box-shadow: 0 5px #666;
   transform: translateY(4px);
}

      </style> 
 </head> 
 <body> 
  <button class="button">Click Me</button>  
 </body>
</html>

Related Tutorials