CSS-Tricks Example

Icon Fonts are Awesome

  1. Because you can easily change the size
  2. Because you can easily change the color
  3. Because you can easily shadow their shape
  4. Because they can have transparent knockouts, which work in IE6 unlike alpha transparent pngs.
  5. Because you can do all the other stuff image based icons can do, like change opacity or rotate or whatever.
  6. You'll be able to do things like add strokes to them with text-stroke or add gradients/textures with background-clip: text; once browser support is a bit deeper.
+ a A b
.icon-plus .icon-circleplus .icon-a .icon-A .icon-return-arrow .icon-b
B c C
.icon-B .icon-c .icon-C .icon-check .icon-watch .icon-cloud

The icon font used on this page is Fico by Lennart Schoors. Here's a collection of more by simurai.

Common Arguments Otherwise


close
Fancy View Source