Hello,
I've added a CSS gradient to this button but there appears to be a weird line appearing. Is there some way I can fix this?
The CSS:
#view-content .billing-form #submit {
background: #94c723; /* Old browsers */
background: -moz-linear-gradient(top, #94c723 0%, #6cb119 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#94c723), color-stop(100%,#6cb119)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #94c723 0%,#6cb119 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #94c723 0%,#6cb119 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #94c723 0%,#6cb119 100%); /* IE10+ */
background: linear-gradient(to bottom, #94c723 0%,#6cb119 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#94c723', endColorstr='#6cb119',GradientType=0 ); /* IE6-9 */
border: none;
border-top: 1px solid #a1d61a;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
color: #FFFFFF;
font-size: 18px;
line-height: 40px;
padding: 0 70px;
font-weight: bold;
font-family: Arial, sans-serif;
}
Just a thought, but why not make the gradiant overlay on pixlr and just set it as the background-image. Then you no longer have this problem and you save about ten lines of code..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With