
For those who are creating websites often this surely is a hot topic most of the times. It's hot because there are few resources on the web which really point out how to get the most out of a button. It's hard to achieve something visually appealing and also compatible in most browsers. Recently I was in a search for something like this and didn't find anything to match my needs for a project I'm working on. I needed a cool button element, which can support multiple fonts (I like to use fonts yes), with some effects and which didn't force me to create 1 image per button just to have all that in one element. Guess what, I didn't find anything to sum all that so I decided to create my own "button machine".
The principle is quite simple. We have a bigger image to server as the background of our buttons with states for hover effects and all that, a smaller image to server as our button action indicators and a php file which takes care of the font processing problem. Add that all toghether and you get a really nice button generator which you can use and re-use in your projects without having to open photoshop each time you need something a little bit fancier.
Without too much talking let's take a look at the demo of what I achieved by joining css with html and php.
Demo: http://www.drsoft.com/misc/articles/buttons
Download example: http://www.drsoft.com/misc/articles/buttons/buttons.zip
P.S. The php works on PHP5+, you must give write permissions to the temp/ dir so it can generate text images. Read more ...