View Full Version : image in button

02-16-2004, 12:11 AM
is there a way to put a picture in a button or text box?

Willy Duitt
02-16-2004, 02:02 AM
Please do not cross-post (http://www.codingforums.com/showthread.php?s=&threadid=33391) your questions from one forum to another.


02-16-2004, 04:46 AM
Been so long 'cause I call on everything form a style sheet...but I think it's:
<input type="image" src="cat.gif">
which defaults to a submit button I think. :rolleyes:

02-16-2004, 09:31 PM
How about this:

<button><img src="image"></button>

02-17-2004, 04:08 AM
But the <button> tag isn't all to well supported...

Another way would be to simply set the image as a background image the <input> tag, then adjust the padding of the box to make it look like the image is in fact in the box.

Only thing about that is that when you depress the button, it won't shift with the text...