Style button with gradient background color - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Button

Description

Style button with gradient background color

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

body {<!--from  w  w w .  j a  va  2 s  . c om-->
   background:#ccc;
}
button {
   border: solid 1px #aaa;
   box-shadow: 0 0 1px #fff inset;
   background-image: linear-gradient(to bottom, #cfcfcf 0%, #c0c0c0 100%);
   padding: 20px;
   border-radius: 10px;
}


      </style> 
 </head> 
 <body> 
  <button>Test</button>  
 </body>
</html>

Related Tutorials