Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Strange Safari CSS bug with CSS gradients

bug

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;
}
like image 619
Alex Jeffrey Avatar asked Apr 28 '13 16:04

Alex Jeffrey


1 Answers

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..

like image 78
Trae Moore Avatar answered Nov 15 '22 09:11

Trae Moore