JSFiddle - React, Tailwind, and code Playground

by ghazal

HTML

<a href="#" class="web_button">CSS Button</a>

CSS

.web_button{
    background: #0.4; /* Old browsers */
    background: -moz-linear-gradient(top,  #b4df5b 0%, #b4df5b 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b4df5b), color-stop(100%,#b4df5b)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #b4df5b 0%,#b4df5b 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #b4df5b 0%,#b4df5b 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #b4df5b 0%,#b4df5b 100%); /* IE10+ */
    background: linear-gradient(top,  #b4df5b 0%,#b4df5b 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b4df5b', endColorstr='#b4df5b',GradientType=0 ); /* IE6-9 */
    width:125px;
    padding:20px;
    display:inline-block;
    color:#fff;
    text-decoration:none;
    font-weight:bold;
    text-align: center;
    border:1px solid #8dc025;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -o-border-radius: 5px;
    -webkit-box-shadow: 0px 2px 3px 2px rgba(50, 50, 50, 0.4);
    -moz-box-shadow: 0px 2px 3px 2px rgba(50, 50, 50, 0.4);
    box-shadow: 0px 2px 3px 2px rgba(50, 50, 50, 0.4);
}
.web_button:hover{
    text-decoration:none;
    background: #8dc025; /* Old browsers */
    background: -moz-linear-gradient(top,  #8dc025 0%, #8dc025 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#8dc025), color-stop(100%,#8dc025)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #8dc025 0%,#8dc025 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #8dc025 0%,#8dc025 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #8dc025 0%,#8dc025 100%); /* IE10+ */
    background: linear-gradient(top,  #8dc025 0%,#8dc025 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#8dc025', endColorstr='#8dc025',GradientType=0 ); /* IE6-9...

JavaScript

/*http://www.paulund.co.uk/css3-buttons-with-pseudo-classes*/