| |||||
How To Make Your Own Custom Form ButtonsYou don't have to settle for using the standard grey & boring form buttons... you can customize them to match the look and feel of your website quite easily. Why Bother? There are two easy ways I know of to make custom form buttons.... One method uses an image to replace the standard input buttons, the other uses CSS to change the font and color parameters to give buttons a more custom look. To change the color & font with CSS: First, create a style with the background color, borders and font that you want for the button. In the example below, all of the parameters are adjustable to fit your scheme.
The next step is assign the new class to each button:
That's all there is to it. It's probably easier if you add the style for your buttons to your external style sheet, but you can place it in the page html too if you want. Note: Don't get too creative with your fonts; if your visitor does not have your chosen font installed on their machine it will default to a font that is installed, and probably not anything like what you wanted. To use your own image: You can create your own custom image with just about any graphics program. Just like any other image, make it with as few colors and smallest file size possible. Note: It's probably a good idea to make a button that looks like a button - with the 3D effect caused by a light/dark border - so that people don't become confused... After you make your button, just edit the form input tag:
Remove the value="Submit" from the tag... otherwise the browser may print Submit on top of your image. Also - replace the "url/submitbutton.gif" with the URL & name of your image, and change the size properties to match your custom button. (Don't forget to upload the image to your server.) You can use your image with a CSS command... But in testing I noticed that different browsers didn't display it the same way, so it would probably be best to use one of the methods above. You can also use this outside of forms. These CSS style commands can be applied to many page elements and just about any event that can be triggered by clicking a link... "Email Me" links.... "Next Page" links, etc. All it really takes is adding your class to the tag. For instance, you can change this: To this: ...simply by replacing the "Click Here..." text with Here is a 'MailTo:' script you can play with:
You're not limited to buttons, either:
This works in table cells (or entire tables), you can put a cool border around an image, lots of things... the only limit is your imagination! (and browser capability) Important Note about form scripts: Different programs will write form scripts with slight variations. The code snippets above are just examples of form elements, yours will be different in detail. Some experimenting and careful testing will be required, but it's worth it if you want to give your webpages and forms a more custom look and feel. As far as I have been able to test, these methods work in all major browsers, and degrade to standard grey or text in others... the only variations seem to be in the way they display the final size of a form button. Test It Yourself Anyway! Just like any other change like this, you will need to test it in as many different ways as you can. What impact all this would have on your website success is uncertain... but what is certain is that custom touches like this can help make a better overall impression, which can lead to a better conversion rate, so it's probably worth the effort. Besides, it's fun to play with this kind of thing, to see what you can come up with. To Your Success! By Tim Brown © 2006. About the author: Tim is the webmaster at http://BLT-Web.com, where webmasters can find free tools, advice, tips and other useful resources designed to help them build a successful website.
|
|
||||
|
|
|||||
Home Contact Site Map About User Agreement & Disclaimer Privacy Policy Links Directory
|
Disclaimer: By using any of the free webmaster tools on this site you agree that it is you who has sole responsibility and liability for any errors that may occur to your website or web server as a result. If you are not prepared to take sole responsibility for your actions then you must agree not to use any of the webmaster tools on this site.
|
Copyright 2004-08 © BLT-Web.com Original Design by Iron Spider, heavily modified by me.