Click to See Complete Forum and Search --> : Buttons with custom images


s0ms0m
09-11-2003, 09:38 AM
I'm creating a form, and I have a submit button and a reset button with rollover effects. Only problem is the button is larger than the image itself. Is there a way to correct this?

Mr J
09-11-2003, 01:57 PM
Use CSS to control the button dimensions


<input type="reset" style="width:30px;height:20px">

s0ms0m
09-11-2003, 08:37 PM
I'm using the <button></button> technique, because I have a cutsom image with a rollover. So the <input> wouldn't help.

Mr J
09-12-2003, 04:51 AM
Try

<button style="width:300px;height:20px"> Hi there </button>