Here is my button:
<input name="Submit" type="image" src="some_button.jpg"/>
I would like to remove the src, give it a text value, and style with css, like this:
<input name="Submit" type="image" value="Next" class="mybutton"/>
The problem is that the value appears in Chrome and Safari with an ugly gray border around it. My research tells me that an input type=image
must always have a src, but when I give it an invisible 1x1.png, the border goes away, but so does the text value.
I realize I can easily resolve this by changing to type="submit"
, but I am retrofitting a design to a pre-existing program, and must keep type="image"
in order to preserve the script.
What are my options??
********Edit:************
Please see fiddle: https://jsfiddle.net/p486cprm/ Look for the ugly gray border. Not the same as the input border.