Click to See Complete Forum and Search --> : Submit Button as an Image


Redhead
02-20-2004, 05:05 PM
Is there a way to have the submit button in a form as an image? If so how?:)

Sam
02-20-2004, 05:20 PM
<style type="text/css">
#submitter{
background:#ffffff url(image.gif);
}
</style>
</head>
<body>
<form id=form1>
<input type="submit" id="submitter">
</form>
</body>

Redhead
02-20-2004, 05:25 PM
<style type="text/css">
#submitter{
background:#ffffff url(image.gif);
}
</style>
</head>
<body>
<form id=form1>
<input type="submit" id="submitter">
</form>
</body>


what is background:#ffffff url(image.gif);

url (image.gif);

cus if i just put
background:#ffffff url(image/next.jpg);
it does not work

Sam
02-20-2004, 05:28 PM
you have a link, cuz I tested locally and it worked fine?

buntine
02-20-2004, 10:59 PM
Here is the plain HTML way. This will be treated the same as a submit form control.


<input type="image" src="yourImageUrl.gif" name="btnSubmit" />


Regards.

Ben Rogers
02-21-2004, 01:46 AM
<button type="submit"><img src="blah" /></button>

don't flame me on that one being not so well supported plz...