Alex
Alex

Reputation: 6099

Using font-awesome as HTML content

I need to be able to use font-awesome as HTML content.

So instead of using the :before selector in css and doing something like this:

.wysihtml5-command.blockquote:before { content: "\f10d"; }

I need to actually use it inside HTML tags like this:

<a class="someclassWithFontawesomeAsFont">\f10d</a>

But this does not work.

Is there any way for me to achieve this?

Upvotes: 0

Views: 1121

Answers (1)

timgavin
timgavin

Reputation: 5146

You need to put Font Awesome classes inside an <i> tag

<a href=""><i class="fa fa-check"></i></a>

Upvotes: 1

Related Questions