Hover buttons and align them - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button layout

Description

Hover buttons and align them

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 {<!--from   w ww  . j a  va2s . c o m-->
   padding:40px 40px;
   color:#392a23;
   background-color:#a2a2a2;
   display: inline-block;
}
.button:hover {
   padding:40px 40px;
   color:#372d2f;
   background-color:#00aeff;
}


      </style> 
 </head> 
 <body> 
  <a href="#" class="button">Home</a> 
  <a href="#" class="button">Games</a>  
 </body>
</html>

Related Tutorials