image

Web UI Kit lets you create pretty CSS buttons with ease, so you can focus on coding. Web UI Kit comes with 5 colors, 12 glyphs, and best of all, you can "mix" them up to get buttons you want. It works great with CSS layout frameworks such as 960.gs, and Blueprint.

Glyphs

image

image Download   37 kb   Download link fixed!

 

About Web UI Kit

The code is based on Oscar Alexander's excellent solution, which I strongly recommend checking out, just to understand how it works.

Usage

After downloading and extracing the file, you'll have 2 folders, drop them into your website's root folder.

image

And then, link the stylesheets to your file:

<link rel="stylesheet" href="webuikit-css/webuikit.css" type="text/css" />

Now you can create different buttons by applying different classes to the following HTML code:

<p class="clearfix"><a href="#" class="button" onclick="this.blur();"><span><span>Button</span></span></a></p>

Download Coda Clips

Here are available classes:

  • Colors: normal, alt, pink, purple, green,dark.
  • Glyphs: plus, minus, left, right, up, down, check, x, star, thumb, heart, back.
  • Glyphs without text: no-text.

For example:

1. Generic button:

<p class="clearfix"><a href="#" class="button" onclick="this.blur();"><span><span>Generic Button</span></span></a></p>

Generic Button

2. Color:

<p class="clearfix"><a href="#" class="button green" onclick="this.blur();"><span><span>Green Button</span></span></a></p>

Green Button

3. Glyph only:

<p class="clearfix"><a href="#" class="button thumb no-text" onclick="this.blur();"><span><span>&nbsp;</span></span></a></p>

 

4. Glyph with text:

<p class="clearfix"><a href="#" class="button star" onclick="this.blur();"><span><span>Star</span></span></a></p>

Star

5. Button with text and color:

<p class="clearfix"><a href="#" class="button heart pink" onclick="this.blur();"><span><span>Mark as Favorite</span></span></a></p>

Mark as Favorite

All right, that's about it. Enjoy!

IE6 Support?

The Web UI Kit should work on IE6, but all images look like crap. I haven't found a way to make IE6 display png background perfectly. I tried IEPNGFIX, but it broke the :active status. If you really need IE6 support, you can convert all images to .gif.

Any suggestons (especially on IE6)? Bug Report? Please .

image @ Sep 15, 2008