Setting up Font Awesome can be as simple as adding two lines of code to your website, or you can be a pro and customize the LESS yourself! Font Awesome even plays nicely with Bootstrap!
Add Font Awesome + Bootstrap into your website with two lines of code. You don't even have to download or install anything!
<head>
section of your site's HTML.
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
Use this method to get the default Font Awesome CSS with the default Bootstrap CSS.
font-awesome
directory into your project.<head>
of your html, reference the location to your font-awesome.min.css.
<link rel="stylesheet" href="path/to/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css">
Use this method to customize Font Awesome and Bootstrap 2.3.2 using LESS.
font-awesome
directory into your project.@import "sprites.less";
@import "path/to/font-awesome/less/font-awesome.less";
@FontAwesomePath
variable to point to your font directory.
@FontAwesomePath: "../font";
The font path is relative from your compiled CSS directory.
Font Awesome works just as well without Bootstrap.
font-awesome
directory into your project.Font Awesome supports IE7. If you need it, you have my condolences.
<head>
of your html, reference the location to your font-awesome-ie7.min.css.
<link rel="stylesheet" href="path/to/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css">
<!--[if IE 7]>
<link rel="stylesheet" href="path/to/font-awesome/css/font-awesome-ie7.min.css">
<![endif]-->