PDA

View Full Version : Submit button rollover



blueskyz
Jan 12th, 2007, 02:37 PM
Is there a way to produce and image rollover for a submit button using css?

I've tried several ways but with little success (a background :hover rollover works but the button will resize to the height/width of the text).

If not, is it possible using javascript instead?

ronaldb66
Jan 12th, 2007, 02:47 PM
You could try the button element (http://www.w3.org/TR/html4/interact/forms.html#h-17.5); it can hold content, which could be styled with a hover effect. I never tried it out though.