Submit button image with ie

Dear Friends,

I am working on a site these days, I want to use one image in submit button .I did that but it is not working in ie … it works fine with firefox …but it does work in ie.

this is what I did.

<tr class=“input_text” align=“right”>

            	&lt;td class="but_td"&gt; &lt;input class="but"  type="submit" value="&nbsp;"/&gt;&lt;/td&gt;

.but{background-image:url(…/…/images_slice/sign-button.gif); background-repeat:no-repeat;border:none; width:115px;height:34px;}
.but_td{margin-right:20px;width:115px;height:34px; margin-top:-2px; border:none;}

kindly help


You can change the input type to “image” if you want an image as a button:

<input type="image" src="submit.jpg"
    alt="Submit your details"/>

More info

You shouldn’t remove the text from the value attribute of the submit button as that makes it unusable for screenreaders.

Here’s an accessible way to do it. It also works with images off as the submit button is placed over the label text. You can read more [URL=“”]in this thread.