Topic: submit button / ie7 issues

Got a bit of a sticky problem, can't seem to be able to fix it...

I tried two ways to generate a submit button with a image. Both ways worked on FF3, doesn't on IE7.


#1. HTML:

<input type="submit" class="submit" value="" />

and the CSS:

.submit { height: 22px; width: 65px; background: url(button.gif); border: none; }



#2. HTML

<input type="image" src="button.gif" />




yea.. any thoughts would be greatly appreciated.

Re: submit button / ie7 issues

Maybe the first method doesn't work because there is no value?

Re: submit button / ie7 issues

I recommend google the following...
IE7 submit background url

TwoHawks
Love is the Function.
No Form is the Tool.

Re: submit button / ie7 issues

maybe you can use javascript to submit the form. make an image and add a onclick event to it.

Re: submit button / ie7 issues

Not a FluxBB issue, should be in Programming

Re: submit button / ie7 issues

Also:

Javascript to replace submits in forms sucks. Don't do it.
What doesn't work about it?

Re: submit button / ie7 issues

Sorry it was wrong section...

Er, got it fixed now anyways, thanks. The problem was the submit button being disappeared entirely.

Figured out that IE7 has different default padding and marings with specific tags i guess. For some reason the submit button was being pushed off the page completely due to huge white space between the button and the rest of the input form. Weird, heh...


Thanks a lot for the help though... awesome community smile