Stylize Font Awesome

Here is a little guide on how to Rotate, Flip, Resize, Compress, Color, Lighten & Bold Font Awesome:


<i class="fas fa-walking"></i>
<i class="fas fa-walking fa-rotate-90"></i>
<i class="fas fa-walking fa-rotate-180"></i>
<i class="fas fa-walking fa-rotate-270"></i>


<i class="fas fa-satellite-dish"></i>
<i class="fas fa-satellite-dish fa-flip-horizontal"></i>
<i class="fas fa-satellite-dish fa-flip-vertical"></i>


<i class="fas fa-truck-pickup"></i>
<i class="fas fa-truck-pickup fa-lg"></i>
<i class="fas fa-truck-pickup fa-2x"></i>
<i class="fas fa-truck-pickup fa-3x"></i>
<i class="fas fa-truck-pickup fa-5x"></i>
<i class="fas fa-truck-pickup fa-7x"></i>


Everything below this point, you can add your own CSS class [e.g. fa-*] to only affect certain icons, or apply the styling to the root icon [e.g. fa-truck-pickup] to affect every icon on your website without adding additional classes.

.fa-compress {
  font-size: 0.5em;
<i class="fas fa-compress-arrows-alt fa-compress"></i>
<i class="fas fa-compress-arrows-alt"></i>
<i class="fas fa-compress-arrows-alt fa-7x"></i>

If needed, you can change out EM, for PX or REM.


You can use a HEX code “#FF0000” or the color name “red”, CSS3 can tell the difference. I prefer HEX, naming the color bugs me.

.fa-red {
  color: #FF0000;
<i class="fas fa-fire-alt fa-red"></i>
<i class="fas fa-fire-alt"></i>

Light & Bold

Adjust the text-stroke pixel weight accordingly for your desired affect.

.fa-thin {
  -webkit-text-stroke: 6px #FFFFFF; /* background color */
  color: #000;
.fa-fat {
  -webkit-text-stroke: 5px #FF0000; /* font color */
  color: #FF0000;
<i class="far fa-laugh"></i>
<i class="far fa-laugh fa-thin"></i>
<i class="far fa-laugh fa-fat"></i>
Isaac Adams-Hands

Full Stack Developer, Digital Marketer, and InfoSec enthusiast. He received his Bachelor’s Degree from the University of Western Sydney and his Business Diploma from Georgian College before joining various marketing positions in search portals, e-commerce, higher education, and addiction recovery services.

Follow @ twitter

Related posts

Add a Gravity Forms shortcode in WordPress (PHP)

To add a Gravity Form shortcode in the header, page, footer templates… pretty much anywhere in the theme, just add this code in your PHP file. Gravity Forms Code: You can also add the embed codes: Basic This snippet will display the form with an id of ‘1’; the title and description will not be… Read More

Create a WP staging website in 6 steps w/o a Plugin

This tutorial assumes you have some prior knowledge of PHPmyAdmin, adding Domains, and copying files. How-to Create a WP Staging Website: 1. First thing you need to do is to create a subdomain ( This allows your staging website to run in a separate folder, not affecting your main website files. 2.Now that you have… Read More