Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Have Two Font Awesome Icons in One i Tag

Tags:

font-awesome

I've been scouring the web, and I can't find an answer to this. Is there away to add two Font Awesome icons in one i tag?

I can do it if I put two i tags side by side, like this:

Good for: <i class="fa fa-male fa-2x"></i><i class=" fa fa-female fa-2x"></i>

So is there anyway to do this?

like image 574
Thomas Hutton Avatar asked Jan 07 '23 07:01

Thomas Hutton


1 Answers

Glyph-based fonts like this generally function by changing the content of the element to a specific value, which the font picks up and renders as the appropriate glyph.

So it's unlikely that you'll be able to use a single tag to display both of them unless the library provides specific syntax for handling that behavior on it's own (similar to how Font Awesome uses stacking).

like image 176
Rion Williams Avatar answered Jan 31 '23 00:01

Rion Williams