Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

increase font awesome icons

I'm having a bit trouble with some font-awesome icons. I'm trying to increase the size of a few of them, but for some reason nothing I seem to do works.

Here is my html

<div class="span5 bookBuild">
 <div class="well well-small">
   <h4>Build your Book!</h4>
   <div class="span2">
      <i class="icon-file icon-large"></i>
   </div><!--span2-->
   <div class="span9">
      <p>This is a paragraph</p>
    </div><!--span9-->
    <p class="clearfix"></p>
   </div><!--well-->
 </div><!--span5-->

and I have tried to add as you can see the icon-large class as well as the icon-2x class. None of the icon-2x - icon-4x are working.

I have also tried targeting the specific icon and then increasing the font size such as font-size: 3em;

Any help would be amazing!

like image 554
zazvorniki Avatar asked Sep 08 '13 21:09

zazvorniki


People also ask

How do I increase the size of font awesome icons?

To increase icon sizes relative to their container, use the fa-lg (33% increase), fa-2x , fa-3x , fa-4x , or fa-5x classes. If your icons are getting chopped off on top and bottom, make sure you have sufficient line-height.

How do I increase the size of an icon tag?

Larger Icons To increase the size of icons relative to its container, use icon-large , icon-2x , icon-3x , or icon-4x . Increase the icon size by using the icon-large (33% increase), icon-2x , icon-3x , or icon-4x classes.

How do I change the size of font awesome icons in react?

Change React font awesome icon size To increase React font awesome icon size, use the fa-lg(33 % increase) , fa-2x , fa-3x , fa-4x , or fa-5x classes along with icon class \f41b. Increase in icon size will be relative to their parent container.

How do I make bootstrap icons bigger?

To increase icon sizes relative to their container, use fa-xs , fa-sm , fa-lg (33% increase), or use literal sizes (to scale it from 1x to 10x) fa-2x , fa-3x , fa-4x , fa-5x , fa-6x , fa-7x , fa-8x , fa-9x , fa-10x .


2 Answers

we can make some icon bigger using font awesome. Font awesome provided a class to increse them.

To increase icon sizes relative to their container, use the fa-lg (33% increase), fa-2x, fa-3x, fa-4x, or fa-5x classes.

http://fortawesome.github.io/Font-Awesome/examples/

like image 162
Shariq Avatar answered Sep 21 '22 01:09

Shariq


This worked for me in bootstrap ONLY after I added !important, like this:

.fa-big{font-size: 100px !important;}
like image 41
Mike2145 Avatar answered Sep 21 '22 01:09

Mike2145