Can I make Font Awesome badges bigger than "fa-5x"?

I am using this HTML code:

<div class="col-lg-4"> <div class="panel"> <div class="panel-heading"> <div class="row"> <div class="col-xs-3"> <i class="fa fa-cogs fa-5x"></i> </div> <div class="col-xs-9 text-right"> <div class="huge"> <?=db_query("SELECT COUNT(*) FROM orders WHERE customer = '" . $_SESSION['customer'] . "' AND EntryDate BETWEEN '" . date('dM-y', strtotime('Monday this week')) . "' AND '" . date('dM-y', strtotime('Friday this week')) . "'");?> </div> <div>orders this week</div> </div> </div> </div> <a href="view/orders"> <div class="panel-footer"> <span class="pull-left">View Details</span> <span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span> <div class="clearfix"></div> </div> </a> </div> </div> 

What creates:

enter image description here

Can an icon be made larger than fa-5x ? There is a lot of white space under it that I would like it to occupy.

+48
html css twitter-bootstrap font-awesome
Sep 08 '14 at 7:31 on
source share
3 answers

The awesome font is just a font, so you can use the font size attribute in CSS to resize the icon.

So you can just add a class to an icon like this:

 .big-icon { font-size: 32px; } 
+82
Sep 08 '14 at 7:59
source share

Alternatively, you can edit the source code and create your own increments: https://github.com/FortAwesome/Font-Awesome/blob/master/less/larger.less

 // Icon Sizes // ------------------------- /* makes the font 33% larger relative to the icon container */ .@{fa-css-prefix}-lg { font-size: (4em / 3); line-height: (3em / 4); vertical-align: -15%; } .@{fa-css-prefix}-2x { font-size: 2em; } .@{fa-css-prefix}-3x { font-size: 3em; } .@{fa-css-prefix}-4x { font-size: 4em; } .@{fa-css-prefix}-5x { font-size: 5em; } // Your custom sizes .@{fa-css-prefix}-6x { font-size: 6em; } .@{fa-css-prefix}-7x { font-size: 7em; } .@{fa-css-prefix}-8x { font-size: 8em; } 
+22
Sep 08 '14 at 8:25
source share

You can override / overwrite the default font-awesome default sizes, as well as add your own sizes

 .fa-1x{ font-size:0.8em; } .fa-2x{ font-size:1em; } .fa-3x{ font-size:1.2em; } .fa-4x{ font-size:1.4em; } .fa-5x{ font-size:1.6em; } .fa-mycustomx{ font-size:3.2em; } 
+6
Jun 21 '15 at 21:44
source share



All Articles