style buttons for calculator HTML - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button layout

Description

style buttons for calculator HTML

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

.butt {<!--from ww  w  .  ja  v  a  2  s.  co m-->
   border: 1px outset blue;
   background-color: lightBlue;
   height:50px;
   width:50px;
   cursor:pointer;
   background: rgb(213,206,166); /* Old browsers */
   background: -moz-linear-gradient(top,  yellow 0%, rgba(201,193,144,1) 40%, rgba(183,173,112,1) 100%); /* FF3.6-15 */
   background: -webkit-linear-gradient(top,  yellow 0%,rgba(201,193,144,1) 40%,rgba(183,173,112,1) 100%); /* Chrome10-25,Safari5.1-6 */
   background: linear-gradient(to bottom,  yellow 0%,rgba(201,193,144,1) 40%,rgba(183,173,112,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
   filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d5cea6', endColorstr='#b7ad70',GradientType=0 ); /* IE6-9 */
}
.butt:hover {
   background-color: blue;
   color:white;
}


      </style> 
 </head> 
 <body> 
  <input class="butt" type="button" value="test">  
 </body>
</html>

Related Tutorials