Wednesday, February 19, 2014

Glyphicons!

glyphicons.com is a neat resource for using icons in the form of a font in lieu of images. Using the cheatsheet at the base of this blog posting to find an encoding for a bomb, one may make a class that will put a bomb icon before copy like so:

.bomb:before {
   font: 24px/1em 'Glyphicons Regular';
   -webkit-font-smoothing: antialiased;
   line-height: 29px;
   vertical-align: middle;
   content: "\1F4A3";
}

No comments:

Post a Comment