Search code examples
csswordpresscontact-form-7

-webkit-appearance: none; not working for button


Using contact forms 7 on my Wordpress site development and I noticed the buttons were different for mobile devices, so after searching I found the solution of -webkit-appearance: none; which I applied to the element input.wpcf7-form-control.wpcf7-submit.

The style has been applied because it shows up when I inspect the element, but nothing has changed on mobile devices.

Should I have applied it to a different element?


Solution

  • You should try this code instead :

    input.wpcf7-form-control.wpcf7-submit {
       -webkit-appearance: none;
       -moz-appearance:    none;
       appearance:         none;
    }
    

    Consider adding !important if it still not working.