简体   繁体   中英

How can I find the pixel size of a Font-Awesome icon?

I am n the process of creating a website, where I have several font-awesome icons. I now wish to create a ribbon background for each icon. How can I go about finding the correct pixel size of such font-awesome icon?

In Font-Awesome v 4.7.0 (the current release), the default font size is 14 px. You can find this in font-awesome.css line 16, or, using your browser's devtools to inspect an icon placed on a website. For each x level of increased size, this goes up by ems (aka, fa-2x is 2 ems, or 28px).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM