HTML CSS examples for CSS Widget:Button
Style button with gradient background color
<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>