Jump to content
xisto Community
Sign in to follow this  
kvarnerexpress

Xhtml Strict Method For Submit/reset Buttons As An

Recommended Posts

What's the proper way to handle submit and reset buttons?Using type submit and reset don't allow you to replace the default button with an image, using the type image doesn't allow a button to automatically act like a submit or reset....so far as I know.So How should I do this when I want to use a custom image as the button?Code will be best way to explain, thanks!

Share this post


Link to post
Share on other sites

This is how i would do it:

<input type="submit" value=" " name="" style="background: url(url/of/image.jpg); width: width of image; height: height of image;"  /> <input type="reset" value=" " name="" style="background: url(url/of/image.jpg); width: width of image; height: height of image;"  />

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.