CSS image for submit button - clicking image must submit form

Posted by Tom on Stack Overflow See other posts from Stack Overflow or by Tom
Published on 2010-12-31T11:54:52Z Indexed on 2010/12/31 23:54 UTC
Read the original article Hit count: 228

Filed under:
|
|

Please help,

I have a form on wordpress. I want the user to be able to click an image instead of the standard submit button.

I have the image appear and the submit button disappear - but nothing happens when I click on the image.

This is the code I am using:

.formBuilderForm .formBuilderSubmit {
clear: both;
text-align: right;
    display:block;
width:228px;
height:49px;
background: url(my image url) no-repeat;
text-indent:-999em;

Before you say "google it" or try search: I have tried the methods mentioned here: http://www.queness.com/post/798/5-techniques-to-style-buttons-using-images-and-css

I've read similar posts such as this on stackoverflow but they don't solve my frustratingly simple problem. How to change input button image using CSS?

Thanks for your help.

© Stack Overflow or respective owner

Related posts about css

Related posts about Wordpress