Style Buttons

edited June 2017 in Theme support
I am having trouble with styling the submit button for the contact forms. I have one of my forms over a dark background, so I want the button to have a white border and white text, and I gave the button the class "darkbtn" and added the css below, but it seems that I can only changed the border color. The text color does not change. Any idea?

.darkbtn {
    color #ffffff !important;
    border-color: #ffffff !important;
}

it's the first form on this page - http://johnstownprimelending.com/

Comments

  • Hi,
    you have an error in your code, there is no ":" after "color" in your declaration.
    But this this will not help as the css path is too short, other style will be stronger.
    Use this one: 
    .wpcf7 form.wpcf7-form input.darkbtn {
    color:#fff !important;
    background:#000 !important;
    border: none !important;
    }
Sign In or Register to comment.