Font-awesome: Icon request: Numbers in circles

Created on 6 Dec 2012  路  5Comments  路  Source: FortAwesome/Font-Awesome

Circles with numbers inside them, for step by step stuff:
icon

Could this be part of FA or would a pure CSS approach be better?

Most helpful comment

Hi @Tylney I know I'm pretty late to chime in, but in case anyone else stumbles across this question- here's how you could do it. :)

    <span class="fa-stack fa-lg">
      <i class="fa fa-circle fa-stack-2x"></i>
      <i class="fa fa-inverse fa-stack-1x">1</i>
    </span>

Here's a plunker example.

All 5 comments

:+1: +1

You now have a filled in circle. I'll let you add your own numbers inside with some position:absolute magic.

"position:absolute magic" - that is great, but for the non-magicians among us, could you maybe please include that as an example on the example page? Thank you so much for these awesome font icons by the way, they make my life so much simpler :)

Hi @Tylney I know I'm pretty late to chime in, but in case anyone else stumbles across this question- here's how you could do it. :)

    <span class="fa-stack fa-lg">
      <i class="fa fa-circle fa-stack-2x"></i>
      <i class="fa fa-inverse fa-stack-1x">1</i>
    </span>

Here's a plunker example.

This works, but the number is misaligned inside the outer square/circle/etc. The outer icon is aligned to the surrouding text (eg, same baseline), but the inner number is shifted downward.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rufengch picture rufengch  路  3Comments

ufoczek picture ufoczek  路  3Comments

omnimint picture omnimint  路  3Comments

desspro picture desspro  路  3Comments

faithdong picture faithdong  路  3Comments