Adding Font Awesome Icons via CSS

Summary: I wanted to use Font Awesome in places I could not just add an HTML tag.
Solution: I added them in CSS using :before

I found the solution for adding Font Awesome icons via CSS, which uses the following:

.someclass:before {
	content: "\f09b";
	font-family: FontAwesome;

	/* more styling for the icon, including color, font-size, positioning, etc. */
}

The Drupal module is still needed.

No comments yet.

Leave a Reply