Create pretty CSS3 scaleable buttons
Posted on January 31, 2010, Filled under HTML & CSS,
Bookmark it
Ashley Ford from PaperMashup is a sharing a nice tutorial about creating a set of pretty CSS3 buttons that are both cross browser compliant and degrade gracefully for non CSS3 compliant browsers. Currently, compatible CSS3 browsers are Safari, Chrome and FireFox 3+. It is worth noting that if you’re using Internet Explorer you’re not going to see all the effects as Microsoft’s browser still doesn’t support CSS3.
A button is customized by adding a chain of CSS classes. This way you can set the color and size. The button uses an overlay background image. This is useful for the gradient effect. For IE6 you’ll need to use a PNG transparency hack to make a 24 bit PNG’s render correctly. Another thing to notice is the way colors are defined. All are set using RGBA which brings much more flexibility when rendering shadows.
Do you wish to receive the latest updates as soon as they are posted? Get our RSS Feed or Subscribe to the Newsletter!
- January 31, 2010
- article by Gabriel C.
- Leave a reply!
Related Posts
Create Super Awesome Buttons using CSS3 and RGBAat July 25, 2009
IE 5-8 CSS3 pseudo-class selector emulation: ie-css3.jsat January 29, 2010
Enhance your Website Design with Sexy Buttons: Simply-Buttons v2at November 19, 2009 with 1 comment
Stylish GMail-like buttons: JQuery styledButton Pluginat January 28, 2010
Create, Customize and Send Newsletters: MeeNewsat August 3, 2009 with 1 comment

