Using Numbers With Font Awesome

后端 未结 6 1451
春和景丽
春和景丽 2021-02-02 05:58

I want to use numbers to list steps in a process. I was curious about how to do this with Font Awesome.

I\'d like to use circles with a 1, 2, 3... in it. Is this possibl

6条回答
  •  余生分开走
    2021-02-02 06:37

    Font awesome actually has built-in support for stacking regular text (i.e. numbers, letters, ..) on top of icons.

    Here is a nice example of a calendar icon with the actual day of the month as plain text. As the post also explains you might need to throw in some extra styling for optimal positioning.

    HTML:

    
      
      27
    
    

    CSS:

    .calendar-text { margin-top: .3em; }
    

提交回复
热议问题