Looking for some help with CSS code to create a button that changes color on mouse-over, transitioning from:
white background to black background
black text to white text
Any assistance would be greatly appreciated!
Here is the CSS I have tried so far (but it's not working as intended):
.wpbc-payment-form .btn, .wpbc-payment-form .button, .booking_form_div .btn, .booking_form_div .button, .booking_form_div .submit, .booking_form_div .button-secondary {
border-color: #377ec4;
border-radius:50px;
color: white;!important
background: black;!important
vertical-align: top;
width: 156px;
padding-top: 10px;
padding-bottom: 10px;
font-size: 15px;
text-decoration: none;
-webkit-transition: all .3s ease 0s;
}
.wpbc-payment-form .btn, .wpbc-payment-form .button, .booking_form_div .btn, .booking_form_div .button, .booking_form_div .submit, .booking_form_div .button-secondary:hover {
text-decoration: none;
background: black;
color:white;
}
Here is the HTML code for the button:
<button class="btn btn-default" type="button" onclick="mybooking_submit(this.form,1,'en_US');">Book Now</button>