How do I make sure every glyph has the same width?

后端 未结 4 1740
不思量自难忘°
不思量自难忘° 2021-01-30 11:59

I\'ve noticed that even at the same font size, there is not a standard width. How can I use these in front of a list of items so the words don\'t appear jagged?

Screensh

4条回答
  •  情书的邮戳
    2021-01-30 12:43

    Since 3.1.1, you could use the icon-fixed-width class instead of having to edit the CSS.

    http://fortawesome.github.io/Font-Awesome/3.2.1/examples/#navigation

    Since 4.0, you should use fa-fw:
    4.x https://fontawesome.com/v4.7.0/examples/#fixed-width
    5.x https://fontawesome.com/how-to-use/on-the-web/styling/fixed-width-icons

    Thanks @kalessin for pointing out.

提交回复
热议问题