--> How To Customize Font Awesome Icons in Blogger? | Experience Lab - Online business creation and development guide for bloggers and startups

How To Customize Font Awesome Icons in Blogger?

Font Awesome is an amazing icon-based font that contains compact-sized, but high quality scalable vector graphics that can be used to optimi...


Customize Font Awesome Icons with CSS


Font Awesome is an amazing icon-based font that contains compact-sized, but high quality scalable vector graphics that can be used to optimize most icons across your site. We've talked about implementing Font Awesome Icons on your Blogger template (or any HTML webpage), and we saw that one of the best features about this iconic font is that it is CSS-customizable, which means you can use some pre-built classes, or write your own custom styles to fit your website! In this post, we'll talk about customizing these icons for your site.

Check out our other Font Awesome tutorial to get started with this awesome font!






To use an icon, simply use the <i> tag as shown below.




<i class="fa fa-home"></i>



You can change the highlighted part with the name of any other icon class you like. Here's a list of all available icons.


Customizing CSS


You can create new CSS rules for any of the pre-defined classes. For example;




.fa-home {

font-size: 32px;

color: #033;

padding: 8px;

border: 1px solid #000;

float:left;

}



Here's the icon before styling, and

here's the same icon after styling.



Sometimes, using CSS might not be the best way to do something. Font Awesome provides some additional features!


Resizing icons


To resize an icon by a constant factor, say two times or four times, simply add the rule as shown below.



   <i class="fa fa-home fa-1g"></i>

   <i class="fa fa-home fa-2x"></i>

   <i class="fa fa-home fa-3x"></i>

   <i class="fa fa-home fa-4x"></i>

   <i class="fa fa-home fa-5x"></i>



Please note that not all icons can be resized this way.


Spinning icons



Just like when resizing icons, you can use a class called fa-spin to spin icons. Again, this only works well with a few icons, such as fa-cog and fa-refresh.





<i class="fa fa-refresh fa-spin"></i>

<i class="fa fa-cog fa-spin"></i>



This should look as follows.

   


Change orientation



You can easily flip and rotate icons in a similar way. Here are the classes to be used.




<i class="fa fa-shield"></i>&nbsp; normal<br>

<i class="fa fa-shield fa-flip-horizontal"></i> <!--Flip Horizontally-->

<i class="fa fa-shield fa-flip-vertical"></i> <!--Flip Vertically-->

<i class="fa fa-shield fa-rotate-90"></i> <!--Rotate 90 Degrees Clockwise-->

<i class="fa fa-shield fa-rotate-180"></i> <!--Rotate 180 Degrees-->

<i class="fa fa-shield fa-rotate-270"></i> <!--Rotate 90 Degrees Anti-clockwise-->



Lists



Don't like the default bullets and numberings of your lists? You can easily replace them with icons! Here's an example;


  • Home Icon

  • Square Icon

  • Checked Square Icon


Here's how to use icons in lists;




<ul class="fa-ul">

<li><i class="fa-li fa fa-home"></i>Home Icon</li>

<li><i class="fa-li fa fa-square"></i>Square Icon</li>

<li><i class="fa-li fa fa-check-square"></i>Checked Square Icon</li>

</ul>


Stacking icons


Sometimes, it can be useful to combine two icons together to create a whole new icon. For example, a cross icon can be placed on a camera icon to signify that camera's are not allowed. You can combine many pairs of icons to form new ones. Here are a few examples.




<span class="fa-stack fa-lg">

<i class="fa fa-square-o fa-stack-2x"></i><i class="fa fa-check fa-stack-1x"></i>

</span>

<span class="fa-stack fa-lg">

<i class="fa fa-circle fa-stack-2x"></i><i class="fa fa-flag fa-stack-1x fa-inverse"></i>

</span>

<span class="fa-stack fa-lg">

<i class="fa fa-camera fa-stack-1x"></i><i class="fa fa-ban fa-stack-2x text-danger"></i>

</span>



This is how they're supposed to look.



























This was it for now. If you need more tutorials, feel free to let us know in the comments section below, or follow through to the FA website for more help. All the best :)

COMMENTS

Name

Affiliate Marketing,12,Announcement,34,Bing,9,Bitcoin,38,blog,7,Blogger Resources,42,Blogger Templates,4,blogger tricks,156,Blogging ethics,70,Blogging tips,198,Bugs and Errors,34,Business,11,Copyright Violation,9,CSS and HTMLTricks,95,Designs,8,drop down menu,7,eBook,12,Email Marketing,7,Events,30,Facebook,30,Facebook tricks,49,Google,157,Google AdSense,42,Google Analytics,7,Google Plus,51,Google Plus Tricks,38,Guest Posts,112,home,2,How To,77,Internet,1,JSON Feeds,25,Kitchen Recipes,2,Label Based Sitemap Themes,1,Make Money Online,108,Marketing,17,MBT Blogger Templates,7,Menus,1,News,146,Pages,1,Posts,10,presentations,15,Responsive,10,Reviews,7,SEO,307,Settings,6,Shortcode,15,Sitemap Themes,1,Social Media,155,Technology,7,Templates,1,Tips,2,Tools,1,Traffic Tips,80,Video,19,Web Designing,62,web hosting,18,Webmaster Tools,97,Widgets,199,wordpress,26,
ltr
item
Experience Lab - Online business creation and development guide for bloggers and startups: How To Customize Font Awesome Icons in Blogger?
How To Customize Font Awesome Icons in Blogger?
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRjZIz3dK6fE6DtTHsc7wI49EAnf1DDkCom5RX74_ZHabXKFDEnP-1cYbgQEW2QLJi-JK4WD8U5vrsuaPxB2aT3WOPVTojjnR9rfGrB4dnhhKfBSb1xf0meeTz7weDHa7i2S-sldqj3PR_/s1600/customize-font-awesome-icons-with-css.jpg
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRjZIz3dK6fE6DtTHsc7wI49EAnf1DDkCom5RX74_ZHabXKFDEnP-1cYbgQEW2QLJi-JK4WD8U5vrsuaPxB2aT3WOPVTojjnR9rfGrB4dnhhKfBSb1xf0meeTz7weDHa7i2S-sldqj3PR_/s72-c/customize-font-awesome-icons-with-css.jpg
Experience Lab - Online business creation and development guide for bloggers and startups
https://www.experiencelab.info/2014/02/how-to-customize-font-awesome-icons-in.html
https://www.experiencelab.info/
https://www.experiencelab.info/
https://www.experiencelab.info/2014/02/how-to-customize-font-awesome-icons-in.html
true
2959477579779989044
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share. STEP 2: Click the link you shared to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy