Return to site

Font Awesome

broken image


  1. Download Font Awesome 4.7
  2. Cool Fonts online, free
  3. Font Awesome Cheatsheet

Basic Icons

To use the Font Awesome icons, add the following line inside the section of your HTML page:

Note: No downloading or installation is required!

You place Font Awesome icons by using the prefix fa and the icon's name.

Example

The following code:

Though font awesome is cached by browsers since many websites use it, we have to give attention to first-time visitors who may have a browser without cached font awesome css. Moreover, font awesome version updation is done every time when new icons are added and you should also keep version of the CDN link up to date. So I'm trying to prototype a marketing page and I'm using Bootstrap and the new Font Awesome file. The problem is that when I try to use an icon, all that gets rendered on the page is a big square.











Font Awesome

Results in:

Try It Yourself »

Font Awesome is designed to be used with inline elements. The and elements are widely used for icons.

Also note that if you change the font-size or color of the icon's container, the icon changes. Same things goes for shadow, and anything else that gets inherited using CSS.

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

Example

The following code:





Results in:

Try It Yourself »

Tip: https://insetylpweal1989.mystrikingly.com/blog/joyoshare-media-cutter-3-2-0-43-12. Chance hill casino. If your icons are getting chopped off on top and bottom, increase the line-height.

The fa-ul and fa-li classes are used to replace default bullets in unordered lists. Little snitch 2 3 5 ubserial download free.

Example

The following code:


  • List icons

  • List icons

  • List icons

Results in:

Try It Yourself »

The fa-border, fa-pull-right or fa-pull-left classes are used for for pull quotes or article icons.

Example

The following code:


Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Results in:

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Try It Yourself »

The fa-spin class gets any icon to rotate, and the fa-pulse class gets any icon to rotate with 8 steps.

Example

The following code:





Results in: Insights 4 0 – automated forecasting and data mining tool.

Try It Yourself »

Note: IE8 and IE9 do not support CSS3 animations.

The fa-rotate-* and fa-flip-* classes are used to rotate and flip icons.

Example

The following code:






Results in:

Try It Yourself »

To stack multiple icons, use the fa-stack class on the parent, the fa-stack-1x class for the regularly sized icon, and fa-stack-2x for the larger icon.

The fa-inverse class can be used as an alternative icon color. You can also add larger icon classes to the parent to further control the sizing.

Download Font Awesome 4.7

Example

The following code:





fa-twitter on fa-circle-thin





fa-twitter (inverse) on fa-circle





fa-ban on fa-camera

Results in:

fa-twitter on fa-circle-thin
fa-twitter (inverse) on fa-circle
fa-ban on fa-camera
Try It Yourself »

The fa-fw class is used to set icons at a fixed width. This class is useful when different icon widths throw off alignment. Especially useful in Bootstrap's navlists and list groups.

Example

Try It Yourself »

Font Awesome also works great with all the Bootstrap components.

Cool Fonts online, free


Font Awesome Cheatsheet






broken image