Create anchor button with background gradient - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Button

Description

Create anchor button with background 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">
.button {<!--   w w  w .  jav a 2  s  . c o  m-->
   display:block;
   height:100px;
   width:301px;
   background:Chartreuse;
   border:3px solid yellow;
   color:blue;
   text-align:center;
   font:bold 4.3em/100px "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
   background:-webkit-linear-gradient(top, pink, WhiteSmoke);
   background:-moz-linear-gradient(top, OrangeRed, grey);
   background:-o-linear-gradient(top, BlueViolet, Chartreuse);
   background:-ms-linear-gradient(top, yellow, blue);
   background:linear-gradient(top, pink, WhiteSmoke);
   -webkit-border-radius:51px;
   -khtml-border-radius:51px;
   -moz-border-radius:51px;
   border-radius:51px;
   -webkit-box-shadow:0 9px 0 OrangeRed;
   -moz-box-shadow:0 9px 0 grey;
   box-shadow:0 9px 0 BlueViolet;
   text-shadow:0 3px 3px Chartreuse;
}

a.button {
   text-decoration:none;
}

a.button:visited {
   color:yellow;
}

a:visited {
   color:blue;
}
</style> 
 </head> 
 <body> 
  <a href="###" class="button">Click Me</a> 
  <a href="####">Click Me</a>  
 </body>
</html>

Related Tutorials