I am trying to add a custom hover effect for my submit button. Its easy to add the submit image but how do I go about adding another image for a hover effect? Thanks
I am trying to add a custom hover effect for my submit button. Its easy to add the submit image but how do I go about adding another image for a hover effect? Thanks
Well I kind of figured it out. Here's my temporary solution.
body #gform_wrapper_1 .gform_footer input[type=image] {
padding: 0;
width: auto !important;
background: url(http://www.dubaishippinghelp.com/wp-content/uploads/2012/07/SubmitButton3.png) center top no-repeat !important;
height: 84px !important;
width: 179px !important;
border: none !important
}
body #gform_wrapper_1 .gform_footer:hover input[type=image] {
padding: 0;
width: auto !important;
height: 84px !important;
width: 179px !important;
background: url(http://www.dubaishippinghelp.com/wp-content/uploads/2012/07/SubmitButton5.png) center top no-repeat !important;
}
What about that makes it temporary? The :hover pseudo-class is the correct way to do it.
the z-index is off but that should be a quick fix. not really necessary in this case though. Thanks!