2013-05-11 00:00:01 +08:00
<!DOCTYPE html>
2013-10-23 23:12:39 +08:00
< html lang = "en" >
2013-05-11 00:00:01 +08:00
< head >
<!-- Basic Page Needs
================================================== -->
< meta charset = "utf-8" / >
2013-10-23 23:12:39 +08:00
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" >
2014-05-15 04:13:14 +08:00
< meta name = "description" content = "Font Awesome, the iconic font and CSS framework" >
2013-05-11 00:00:01 +08:00
< meta name = "author" content = "Dave Gandy" >
2014-08-27 00:51:53 +08:00
< meta http-equiv = "X-UA-Compatible" content = "IE=edge" >
2013-10-23 23:12:39 +08:00
< link rel = "shortcut icon" href = "../assets/ico/favicon.ico" >
2013-05-11 00:00:01 +08:00
2013-10-23 23:12:39 +08:00
< title > Get Started with Font Awesome< / title >
2013-05-11 00:00:01 +08:00
<!-- CSS
2013-10-23 23:12:39 +08:00
================================================== -->
2013-05-11 00:00:01 +08:00
< link rel = "stylesheet" href = "../assets/css/site.css" >
< link rel = "stylesheet" href = "../assets/css/pygments.css" >
2013-06-13 02:43:02 +08:00
< link rel = "stylesheet" href = "../assets/font-awesome/css/font-awesome.css" >
2013-10-23 23:12:39 +08:00
<!-- [if lt IE 9]>
< script src = "../assets/js/html5shiv.js" > < / script >
< script src = "../assets/js/respond.min.js" > < / script >
2013-05-11 00:00:01 +08:00
<![endif]-->
< script type = "text/javascript" src = "//use.typekit.net/wnc7ioh.js" > < / script >
< script type = "text/javascript" > try { Typekit . load ( ) ; } catch ( e ) { } < / script >
< script type = "text/javascript" >
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-30136587-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
< / script >
< / head >
2013-10-23 23:12:39 +08:00
< body >
2014-08-05 01:31:21 +08:00
< script type = "text/javascript" >
(function(){
var bsa = document.createElement('script');
bsa.type = 'text/javascript';
bsa.async = true;
bsa.src = 'http://s3.buysellads.com/ac/bsa.js';
(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa);
})();
< / script >
2013-10-23 23:12:39 +08:00
< div id = "wrap" > <!-- necessary for sticky footer. wrap all content except footer -->
2013-05-11 00:00:01 +08:00
< div class = "navbar navbar-inverse navbar-static-top hidden-print" >
2013-10-23 23:12:39 +08:00
< div class = "container" >
< div class = "navbar-header" >
< button type = "button" class = "navbar-toggle" data-toggle = "collapse" data-target = ".navbar-collapse" >
< span class = "sr-only" > Toggle navigation< / span >
2013-11-05 01:53:03 +08:00
< i class = "fa fa-bars fa-lg" > < / i >
2013-10-23 23:12:39 +08:00
< / button >
< a class = "navbar-brand" href = "../" > < i class = "fa fa-flag" > < / i > Font Awesome< / a >
< / div >
2013-06-13 02:43:02 +08:00
2013-10-23 23:12:39 +08:00
< div class = "navbar-collapse collapse" >
< ul class = "nav navbar-nav" >
< li class = "hidden-sm " > < a href = "../" > Home< / a > < / li >
< li class = "hidden-sm" >
< a href = "../whats-new/" > What's New< / a >
< / li >
< li class = "hidden-xs hidden-md hidden-lg" >
< a href = "../whats-new/" > New< / a >
< / li >
< li class = "active" > < a href = "../get-started/" > Get Started< / a > < / li >
< li class = "dropdown-split-left" > < a href = "../icons/" > Icons< / a > < / li >
< li class = "dropdown dropdown-split-right hidden-xs" >
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" >
< i class = "fa fa-caret-down" > < / i >
< / a >
< ul class = "dropdown-menu pull-right" >
< li > < a href = "../icons/" > < i class = "fa fa-flag fa-fw" > < / i > Icons< / a > < / li >
< li class = "divider" > < / li >
2014-08-27 00:51:53 +08:00
< li > < a href = "../icons/#new" > < i class = "fa fa-cube fa-fw" > < / i > New Icons in 4.2< / a > < / li >
2013-10-23 23:12:39 +08:00
< li > < a href = "../icons/#web-application" > < i class = "fa fa-camera-retro fa-fw" > < / i > Web Application Icons< / a > < / li >
2014-05-15 04:13:14 +08:00
< li > < a href = "../icons/#file-type" > < i class = "fa fa-file-image-o fa-fw" > < / i > File Type Icons< / a > < / li >
< li > < a href = "../icons/#spinner" > < i class = "fa fa-spinner fa-fw" > < / i > Spinner Icons< / a > < / li >
2013-10-23 23:12:39 +08:00
< li > < a href = "../icons/#form-control" > < i class = "fa fa-check-square fa-fw" > < / i > Form Control Icons< / a > < / li >
2014-08-27 00:51:53 +08:00
< li > < a href = "../icons/#payment" > < i class = "fa fa-credit-card fa-fw" > < / i > Payment Icons< / a > < / li >
< li > < a href = "../icons/#chart" > < i class = "fa fa-pie-chart fa-fw" > < / i > Chart Icons< / a > < / li >
2013-10-23 23:12:39 +08:00
< li > < a href = "../icons/#currency" > < i class = "fa fa-won fa-fw" > < / i > Currency Icons< / a > < / li >
< li > < a href = "../icons/#text-editor" > < i class = "fa fa-file-text-o fa-fw" > < / i > Text Editor Icons< / a > < / li >
< li > < a href = "../icons/#directional" > < i class = "fa fa-hand-o-right fa-fw" > < / i > Directional Icons< / a > < / li >
< li > < a href = "../icons/#video-player" > < i class = "fa fa-play-circle fa-fw" > < / i > Video Player Icons< / a > < / li >
< li > < a href = "../icons/#brand" > < i class = "fa fa-github fa-fw" > < / i > Brand Icons< / a > < / li >
< li > < a href = "../icons/#medical" > < i class = "fa fa-medkit fa-fw" > < / i > Medical Icons< / a > < / li >
< / ul >
< / li >
< li class = "dropdown-split-left" > < a href = "../examples/" > Examples< / a > < / li >
< li class = "dropdown dropdown-split-right hidden-xs" >
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" >
< i class = "fa fa-caret-down" > < / i >
< / a >
< ul class = "dropdown-menu pull-right" >
< li > < a href = "../examples/" > Examples< / a > < / li >
< li class = "divider" > < / li >
2014-05-15 04:13:14 +08:00
< li > < a href = "../examples/#basic" > Basic Icons< / a > < / li >
2013-10-23 23:12:39 +08:00
< li > < a href = "../examples/#larger" > Larger Icons< / a > < / li >
< li > < a href = "../examples/#fixed-width" > Fixed Width Icons< / a > < / li >
< li > < a href = "../examples/#list" > List Icons< / a > < / li >
< li > < a href = "../examples/#bordered-pulled" > Bordered & Pulled Icons< / a > < / li >
< li > < a href = "../examples/#spinning" > Spinning Icons< / a > < / li >
< li > < a href = "../examples/#rotated-flipped" > Rotated & Flipped Icons< / a > < / li >
< li > < a href = "../examples/#stacked" > Stacked Icons< / a > < / li >
< li > < a href = "../examples/#bootstrap" > Bootstrap 3 Examples< / a > < / li >
< li > < a href = "../examples/#custom" > Custom CSS< / a > < / li >
< / ul >
< / li >
< li > < a href = "../community/" > Community< / a > < / li >
< li > < a href = "../license/" > License< / a > < / li >
< / ul >
< ul class = "nav navbar-nav navbar-right" >
< li > < a href = "http://blog.fontawesome.io" > Blog< / a > < / li >
< / ul >
2013-05-11 00:00:01 +08:00
< / div >
< / div >
< / div >
2014-06-18 06:23:21 +08:00
2013-05-11 00:00:01 +08:00
< div class = "jumbotron jumbotron-ad hidden-print" >
< div class = "container" >
2013-10-23 23:12:39 +08:00
< h1 > < i class = "fa fa-cogs" > < / i > Get Started< / h1 >
2014-08-27 00:51:53 +08:00
< p > Easy ways to get Font Awesome 4.2.0 onto your website< / p >
2013-05-11 00:00:01 +08:00
< / div >
< / div >
< div id = "social-buttons" class = "hidden-print" >
< div class = "container" >
2013-10-23 23:12:39 +08:00
< ul class = "list-inline" >
2013-05-11 00:00:01 +08:00
< li >
< iframe class = "github-btn" src = "http://ghbtns.com/github-btn.html?user=FortAwesome&repo=Font-Awesome&type=watch&count=true" allowtransparency = "true" frameborder = "0" scrolling = "0" width = "100px" height = "20px" > < / iframe >
< / li >
< li >
< iframe class = "github-btn" src = "http://ghbtns.com/github-btn.html?user=FortAwesome&repo=Font-Awesome&type=fork&count=true" allowtransparency = "true" frameborder = "0" scrolling = "0" width = "102px" height = "20px" > < / iframe >
< / li >
< li class = "follow-btn" >
2013-05-11 08:23:47 +08:00
< a href = "https://twitter.com/fontawesome" class = "twitter-follow-button" data-link-color = "#0069D6" data-show-count = "true" > Follow @fontawesome< / a >
2013-05-11 00:00:01 +08:00
< / li >
2013-06-13 02:43:02 +08:00
< li class = "tweet-btn hidden-phone" >
2014-05-15 04:13:14 +08:00
< a href = "https://twitter.com/share" class = "twitter-share-button" data-url = "http://fontawesome.io" data-text = "Font Awesome, the iconic font and CSS framework" data-counturl = "http://fortawesome.github.com/Font-Awesome/" data-count = "horizontal" data-via = "fontawesome" data-related = "davegandy:Creator of Font Awesome" > Tweet< / a >
2013-05-11 00:00:01 +08:00
< / li >
< / ul >
< / div >
< / div >
< div class = "container" >
2013-10-23 23:12:39 +08:00
< section class = "hidden-print" >
< div class = "stripe-ad" >
2014-06-18 00:00:48 +08:00
< script type = "text/javascript" src = "//cdn.fusionads.net/fusion.js?zoneid=1332&serve=C6SDP2Y&placement=fontawesome" id = "_fusionads_js" > < / script >
2013-05-11 00:00:01 +08:00
2013-10-23 23:12:39 +08:00
< p class = "lead" >
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
< a href = "http://getbootstrap.com" > Bootstrap 3< / a > !
< / p >
2013-05-11 00:00:01 +08:00
< / div >
< / section >
2013-10-23 23:12:39 +08:00
< div id = "bootstrapcdn" >
2014-06-19 05:29:34 +08:00
< h2 class = "page-header" > EASIEST: < a href = "http://www.bootstrapcdn.com/#fontawesome_tab" > BootstrapCDN< / a > by < a href = "http://maxcdn.com" > MaxCDN< / a > < / h2 >
< p > Thanks to the generous folks at < a href = "http://maxcdn.com" > MaxCDN< / a > , you can use Bootstrap CDN to add Font Awesome into your website with a single line of code. You don't even have to download or install anything!< / p >
2013-10-23 23:12:39 +08:00
< ol >
< li >
Paste the following code into the < code > < head> < / code > section of your site's HTML.
2014-08-27 00:51:53 +08:00
< div class = "highlight" > < pre > < code class = "html" > < span class = "nt" > < link< / span > < span class = "na" > href=< / span > < span class = "s" > " //maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" < / span > < span class = "na" > rel=< / span > < span class = "s" > " stylesheet" < / span > < span class = "nt" > > < / span >
2013-05-11 00:00:01 +08:00
< / code > < / pre > < / div >
2014-05-15 04:13:14 +08:00
< p class = "alert alert-success" > < i class = "fa fa-info-circle" > < / i > Immediately after release, it takes a bit of time for BootstrapCDN to catch up and get the newest version live on their CDN.< / p >
2013-10-23 23:12:39 +08:00
< / li >
< li >
Pat yourself on the back for your scalable-vector-icons-on-the-website
< a href = "http://37signals.com/svn/posts/312-lingo-judo" > judo solution< / a > in a single line of code.
< / li >
< li >
Check out the < a href = "../examples/" > examples< / a > to start using Font Awesome!
< / li >
< / ol >
< / div >
2013-05-11 00:00:01 +08:00
2013-10-23 23:12:39 +08:00
< section id = "default-css" >
< h2 class = "page-header" > EASY: Default CSS< / h2 >
< p > Use this method to get the default Font Awesome CSS with the default Bootstrap CSS.< / p >
< ol >
< li > Copy the entire < code > font-awesome< / code > directory into your project.< / li >
< li >
In the < code > < head> < / code > of your html, reference the location to your font-awesome.min.css.
< div class = "highlight" > < pre > < code class = "html" > < span class = "nt" > < link< / span > < span class = "na" > rel=< / span > < span class = "s" > " stylesheet" < / span > < span class = "na" > href=< / span > < span class = "s" > " path/to/font-awesome/css/font-awesome.min.css" < / span > < span class = "nt" > > < / span >
2013-05-11 00:00:01 +08:00
< / code > < / pre > < / div >
2013-10-23 23:12:39 +08:00
< / li >
< li > Check out the < a href = "../examples/" > examples< / a > to start using Font Awesome!< / li >
< / ol >
< / section >
2013-05-11 00:00:01 +08:00
2013-11-05 01:53:03 +08:00
< section id = "ruby-gem-less" >
< h2 class = "page-header" > EASY: < a href = "https://github.com/FortAwesome/font-awesome-less" > LESS Ruby Gem< / a > < / h2 >
2013-10-23 23:12:39 +08:00
< p >
2013-11-05 01:53:03 +08:00
Use the < a href = "https://github.com/FortAwesome/font-awesome-less" > Official Font Awesome LESS Ruby Gem< / a > to easily get Font
Awesome LESS into a Rails project. Generously maintained by < a href = "https://twitter.com/supercodepoet/" > @supercodepoet< / a > .
< / p >
< ol >
< li >
Add this line to your application's Gemfile:
< div class = "highlight" > < pre > < code class = "bash" > gem < span class = "s1" > ' font-awesome-less' < / span >
< / code > < / pre > < / div >
< / li >
< li >
And then execute:
< div class = "highlight" > < pre > < code class = "bash" > < span class = "nv" > $ < / span > bundle
< / code > < / pre > < / div >
< / li >
< li > Or install it yourself as:
< div class = "highlight" > < pre > < code class = "bash" > < span class = "nv" > $ < / span > gem install font-awesome-less
< / code > < / pre > < / div >
< / li >
< / ol >
2014-08-27 00:51:53 +08:00
< p >
If you use Rails, add this to your e.g. < code > application.css< / code > , just before < code > *= require_self< / code > :
< / p >
< div class = "highlight" > < pre > < code class = "css" > < span class = "o" > *=< / span > < span class = "nt" > require< / span > < span class = "nt" > font-awesome< / span >
< / code > < / pre > < / div >
2013-11-05 01:53:03 +08:00
< / section >
< section id = "ruby-gem-sass" >
< h2 class = "page-header" > EASY: < a href = "https://github.com/FortAwesome/font-awesome-sass" > SASS Ruby Gem< / a > < / h2 >
< p >
Use the < a href = "https://github.com/FortAwesome/font-awesome-sass" > Official Font Awesome SASS Ruby Gem< / a > to easily get Font
2014-08-27 00:51:53 +08:00
Awesome SASS into a Rails or Compass project. Generously maintained by < a href = "https://twitter.com/supercodepoet/" > @supercodepoet< / a > .
2013-10-23 23:12:39 +08:00
< / p >
< ol >
< li >
Add this line to your application's Gemfile:
< div class = "highlight" > < pre > < code class = "bash" > gem < span class = "s1" > ' font-awesome-sass' < / span >
2013-06-13 02:43:02 +08:00
< / code > < / pre > < / div >
2013-10-23 23:12:39 +08:00
< / li >
< li >
And then execute:
< div class = "highlight" > < pre > < code class = "bash" > < span class = "nv" > $ < / span > bundle
2013-06-13 02:43:02 +08:00
< / code > < / pre > < / div >
2013-10-23 23:12:39 +08:00
< / li >
< li > Or install it yourself as:
< div class = "highlight" > < pre > < code class = "bash" > < span class = "nv" > $ < / span > gem install font-awesome-sass
2013-05-11 00:00:01 +08:00
< / code > < / pre > < / div >
2013-10-23 23:12:39 +08:00
< / li >
< / ol >
2014-08-27 00:51:53 +08:00
< p >
If you use Rails, add this to your e.g. < code > application.css< / code > , just before < code > *= require_self< / code > :
< / p >
< div class = "highlight" > < pre > < code class = "css" > < span class = "o" > *=< / span > < span class = "nt" > require< / span > < span class = "nt" > font-awesome< / span >
< / code > < / pre > < / div >
2013-10-23 23:12:39 +08:00
< / section >
2013-05-11 00:00:01 +08:00
2013-10-23 23:12:39 +08:00
< section id = "custom-less" >
2013-11-05 01:53:03 +08:00
< h2 class = "page-header" > PRO: Custom LESS or SASS< / h2 >
2014-08-27 00:51:53 +08:00
< p > Use this method to customize Font Awesome 4.2.0 using LESS or SASS.< / p >
2013-10-23 23:12:39 +08:00
< ol >
< li > Copy the < code > font-awesome/< / code > directory into your project.< / li >
< li >
2013-11-05 01:53:03 +08:00
Open your project's < code > font-awesome/less/variables.less< / code > or < code > font-awesome/scss/_variables.scss< / code > and edit the < code > @fa-font-path< / code > or < code > $fa-font-path< / code >
2013-10-23 23:12:39 +08:00
variable to point to your font directory.
< div class = "highlight" > < pre > < code class = "scss" > < span class = "k" > @fa-font-path< / span > < span class = "nd" > :< / span > < span class = "s2" > " ../font" < / span > < span class = "o" > ;< / span >
2013-05-11 00:00:01 +08:00
< / code > < / pre > < / div >
2013-10-23 23:12:39 +08:00
< p class = "alert alert-success" > < i class = "fa fa-info-circle" > < / i > The font path is relative from your compiled CSS directory.< / p >
< / li >
2013-11-05 01:53:03 +08:00
< li > Re-compile your LESS or SASS if using a static compiler. Otherwise, you should be good to go.< / li >
2013-10-23 23:12:39 +08:00
< li > Check out the < a href = "../examples/" > examples< / a > to start using Font Awesome!< / li >
< / ol >
< / section >
< section class = "need-ie7" >
< h2 class = "page-header" > Need IE7 Support?< / h2 >
< p >
2014-08-27 00:51:53 +08:00
If you need IE7 support, you have my condolences. Really. Font Awesome 4.2.0
2013-10-23 23:12:39 +08:00
doesn't support IE7, but an older version does. You'll need to check out the
< a href = "../3.2.1/get-started/#need-ie7" > 3.2.1 instructions for using IE7< / a > . Then go complain to
whomever decided your project needs IE7 support.
< / p >
< / section >
2013-05-11 00:00:01 +08:00
2013-10-23 23:12:39 +08:00
< section id = "troubleshooting" >
< h2 class = "page-header" > Troubleshooting< / h2 >
< p >
If you're having trouble with Font Awesome, make sure to check out the
< a href = "https://github.com/FortAwesome/Font-Awesome/wiki/Troubleshooting" > troubleshooting wiki page< / a > .
Generously maintained by < a href = "https://twitter.com/gtagliala" > @gtagliala< / a > .
< / p >
< / section >
2013-05-11 00:00:01 +08:00
< / div >
< / div >
2013-10-23 23:12:39 +08:00
< footer id = "footer" class = "footer hidden-print" >
2013-05-11 00:00:01 +08:00
< div class = "container text-center" >
2014-08-05 01:31:21 +08:00
< div id = "bsap_1298241" class = "bsarocks bsap_b1146e3f9fa32a794fc6d2c7be47ece8" > < / div >
2013-05-11 00:00:01 +08:00
< div >
2014-08-27 00:51:53 +08:00
< i class = "fa fa-flag" > < / i > Font Awesome 4.2.0
2013-10-23 23:12:39 +08:00
< span class = "hide-xs" > · < / span > < br class = "hide-sm hide-md hide-lg" >
2013-10-28 04:38:45 +08:00
Created by < a href = "http://twitter.com/davegandy" > Dave Gandy< / a >
2013-05-11 00:00:01 +08:00
< / div >
< div >
2013-06-13 02:43:02 +08:00
Font Awesome licensed under < a href = "http://scripts.sil.org/OFL" > SIL OFL 1.1< / a >
2013-10-23 23:12:39 +08:00
< span class = "hide-xs" > · < / span > < br class = "hide-sm hide-md hide-lg" >
2013-06-13 02:43:02 +08:00
Code licensed under < a href = "http://opensource.org/licenses/mit-license.html" > MIT License< / a >
2013-10-23 23:12:39 +08:00
< span class = "hide-xs hide-sm" > · < / span > < br class = "hide-md hide-lg" >
2013-05-11 00:00:01 +08:00
Documentation licensed under < a href = "http://creativecommons.org/licenses/by/3.0/" > CC BY 3.0< / a >
< / div >
< div >
2013-10-23 23:12:39 +08:00
Thanks to < a href = "http://maxcdn.com" > < i class = "fa fa-maxcdn" > < / i > MaxCDN< / a > for providing the excellent < a href = "http://www.bootstrapcdn.com/#fontawesome_tab" > BootstrapCDN for Font Awesome< / a >
2013-05-11 00:00:01 +08:00
< / div >
< div class = "project" >
< a href = "https://github.com/FortAwesome/Font-Awesome" > GitHub Project< / a > ·
2013-10-28 04:38:45 +08:00
< a href = "https://github.com/FortAwesome/Font-Awesome/issues" > Issues< / a > ·
< a href = "../3.2.1" > Old 3.2.1 Docs< / a >
2013-05-11 00:00:01 +08:00
< / div >
< / div >
< / footer >
< script src = "http://platform.twitter.com/widgets.js" > < / script >
2014-08-27 00:51:53 +08:00
< script src = "https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" > < / script >
< script src = "//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js" > < / script >
2013-05-11 00:00:01 +08:00
< script src = "../assets/js/site.js" > < / script >
< / body >
< / html >