Adding FontAwesome Icon to CSS

To add an icon using only CSS (for example, before list items), use this code:

&:before { font: normal normal normal 14px/1 FontAwesome; content: '\f0a9'; margin-right:10px;

Of course, you’ll need to have the FontAwesome font installed on your site.

Get the unicodes for icons here:  http://fontawesome.io/cheatsheet/

Leave a Reply

Your email address will not be published. Required fields are marked *

Skip to toolbar