What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    background colour when using image for submit button

    Asked by exa on January 06, 2012 at 08:19 AM

    -

  • Profile Image
    JotForm Support

    Answered by abajan on January 06, 2012 at 11:08 AM

    Well, it appears that you have solved the original problem of the orange background that showed up around the perimeter of the button:

    For the benefit of others who encounter the same problem, here's the CSS you injected:

    .form-submit-button,
    .form-submit-reset,
    .form-submit-print,
    .form-pagebreak-back,
    .form-pagebreak-next {
        -moz-border-radius:4px 4px;
        -webkit-border-radius:4px 4px;
        border-radius:4px 4px;
        -moz-box-shadow:0 1px 0 rgba(255, 255, 255, 0.75);
        -webkit-box-shadow:0 1px 0 rgba(255, 255, 255, 0.75);
        box-shadow:0 1px 0 rgba(255, 255, 255, 0.75);
        text-shadow:none;
        padding:6px 18px;
        border:none;
        color:#fff;
        font-size:12px;
        background: none;
        filter: none; /* ie */
    }

    .form-submit-button:hover,
    .form-submit-reset:hover,
    .form-submit-print:hover,
    .form-pagebreak-back:hover,
    .form-pagebreak-next:hover {
        background: transparent;
        filter: none; !important
        border-color: transparent;
    }

    /* mousedown */
    .form-submit-button:active,
    .form-submit-reset:active,
    .form-submit-print:active,
    .form-pagebreak-back:active,
    .form-pagebreak-next:active {
        background: none;
        border-color: transparent;
    }

    (Unless it's some sort of hack, there's an error in the second declaration of the second rule where the semicolon is incorrectly positioned. Nevertheless, the code did its job.)

    Incidentally, upon testing the form at BrowserStack, I discovered that in IE6 a gray border appears around the button (as shown below) but thankfully, every month the number of folks who use that browser dwindles. So, it might not be that big of a deal.

    It might be a PNG transparency issue. If it's important that that border not be displayed, I'll see if I can come up with a solution that doesn't require embedding the form's full source into a web page.