I had a request the other day for some more information on creating buttons without the use of images. Hopefully I can shed some more light on the process.
Category: Technology
Old Archive Entries
Not long ago, I updated the format for the names of links. This wasn’t terribly complex, but it does raise the question of how to deal with all those “old” pages. For instance, I see an increasing number of people hitting my page on The Angler Fish (now on the first page of results at Google!). Unfortunately, they are using the old URL to access it.
Syndication Formats
Now that you’ve designed your blog, should you syndicate it? Syndication, while it sounds somewhat intimidating, really means nothing more than making your site available in a slightly different format so that it can be processed and read more efficiently. In the most basic sense, a web page itself is, in fact, syndication – you are providing data, and that data is wrapped in a formatting language (HTML/XHTML) that tells a browser how to display the data.
Now Some PHP
My buttons were in a Movable Type template module, which was great because it meant that I didn’t need to change every page when the buttons changed.
I did this by creating a new template module (scroll all the way to the bottom of your MT “templates” page) called, appropriately enough, buttons. Then I just added a bit of code to each of the other templates where I wanted to see the buttons in question.
More on Forms
As I was finishing up the initial release of the blog, I decided that I wanted to do something different with the “add a comment” function. While it was clear enough that you selected the “no” button to keep from saving your personal information, the information was removed just by the clicking of that button!
Forms in XHTML 1.1
If you’re looking for XHTML 1.1 compatibility, then only minor changes are needed to your default Movable Type templates. I had the most difficulty with the comments form on the individual entry archive.
Buttons without Images
I think the first time I noticed anything about making buttons out of CSS, it was at Chris Pirillo’s blog. Unfortunately, I don’t have the direct link, and I can’t seem to find it anyplace. If you happen to have it, pass it along and I’ll make sure to add it here. In the meantime, check out Chris’ site to see some buttons made purely with CSS (no images).