Make a button out of <a> using gradient - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Button

Description

Make a button out of <a> using gradient

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">
.blue_button {<!--   w w  w  .j  a  v  a2s  .c o  m-->
   background-color:Chartreuse;
   background:-moz-linear-gradient(top,  yellow 0%, blue 100%);
   background:-webkit-gradient(linear, left top, left bottom, color-stop(0%,pink), color-stop(100%,WhiteSmoke));
   background:-webkit-linear-gradient(top,  OrangeRed 0%,grey 100%);
   background:-o-linear-gradient(top,  BlueViolet 0%,Chartreuse 100%);
   background:-ms-linear-gradient(top,  yellow 0%,blue 100%);
   background:linear-gradient(to bottom,  pink 0%,WhiteSmoke 100%);
   filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='OrangeRed', endColorstr='grey',GradientType=0 );
   border:2px solid BlueViolet;
   padding:11px 31px;
   font-weight:601;
   font-size:151%;
   -webkit-border-radius:4px;
   -moz-border-radius:4px;
   border-radius:4px;
   color:Chartreuse;
   text-decoration:none;
   box-shadow:inset 0px 4px 3px -3px white;
   position:relative;
   top:11px;
}
</style> 
 </head> 
 <body> 
  <a href="register" title="Register Now" class="blue_button">OK</a>  
 </body>
</html>

Related Tutorials