I saw from the wiki that Nicole is possibly about to start working on
an implementation of buttons in CSS:
http://wiki.github.com/stubbornella/oocss/buttons
One of the options she mentions is creating buttons without images,
using Bowman's technique or some custom filters to simulate gradients.
I don't like Bowman's technique (I think it's ugly), and CSS
gradients, as far as I know, are not available in Firefox and are not
part of any standard, so we cannot even hope they'll be widely
implemented any time soon.
For these reasons, I came up with an alterative technique, which
creates nice gradients using the CSS3 property box-shadow (already
implemented in Webkit and Gecko).
Enjoy:
http://attardi.org/buttons/
Fine print: only tested to work in Safari and Firefox. It fails in
Opera and, I assume, in IE. I'm using the <a> element because <button>
is much harder to tame. Despite these issues, I think the technique
has potential. I would be really happy if it made its way into OOCSS.
Looking forward to your feedback!
Cheers,
Stefano
http://attardi.org/