Search code examples
cssdrawingcss-shapes

How to draw a checkmark / tick using CSS?


How to draw the tick symbol using CSS? The symbols I find using Unicode isn't aesthetically-pleasing.

EDIT Icon fonts are a great suggestion. I was looking for something like this.


Solution

  • You can now include web fonts and even shrink down the file size with just the glyphs you need. https://github.com/fontello/fontello http://fontello.com/

    li:before {
      content:'[add icon symbol here]';
      font-family: [my cool web icon font here];
      display:inline-block;
      vertical-align: top;
      line-height: 1em;
      width: 1em;
      height:1em;
      margin-right: 0.3em;
      text-align: center;
      color: #999;
    }