2012-07-08 10:47:36 +02:00
<!DOCTYPE html>
< html lang = "en" >
< head >
< meta charset = "utf-8" >
2012-10-08 06:38:28 +02:00
< title > Getting · Bootstrap< / title >
2012-07-08 10:47:36 +02:00
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" >
< meta name = "description" content = "" >
< meta name = "author" content = "" >
2013-01-18 05:26:17 +01:00
<!-- Bootstrap core CSS -->
2012-07-08 10:47:36 +02:00
< link href = "assets/css/bootstrap.css" rel = "stylesheet" >
2013-01-18 05:26:17 +01:00
<!-- Documentation extras -->
2012-07-08 10:47:36 +02:00
< link href = "assets/css/docs.css" rel = "stylesheet" >
< link href = "assets/js/google-code-prettify/prettify.css" rel = "stylesheet" >
2013-01-18 05:26:17 +01:00
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
2012-07-08 10:47:36 +02:00
<!-- [if lt IE 9]>
2013-01-14 09:11:55 +01:00
< script src = "assets/js/html5shiv.js" > < / script >
2013-01-18 02:02:35 +01:00
< script src = "assets/js/respond/respond.min.js" > < / script >
2012-07-08 10:47:36 +02:00
<![endif]-->
2013-01-18 05:26:17 +01:00
<!-- Favicons -->
2012-07-08 10:47:36 +02:00
< link rel = "apple-touch-icon-precomposed" sizes = "144x144" href = "assets/ico/apple-touch-icon-144-precomposed.png" >
< link rel = "apple-touch-icon-precomposed" sizes = "114x114" href = "assets/ico/apple-touch-icon-114-precomposed.png" >
2012-12-03 22:22:10 +01:00
< link rel = "apple-touch-icon-precomposed" sizes = "72x72" href = "assets/ico/apple-touch-icon-72-precomposed.png" >
< link rel = "apple-touch-icon-precomposed" href = "assets/ico/apple-touch-icon-57-precomposed.png" >
2012-12-03 22:25:56 +01:00
< link rel = "shortcut icon" href = "assets/ico/favicon.png" >
2012-07-08 10:47:36 +02:00
< / head >
2012-08-20 06:12:52 +02:00
< body data-spy = "scroll" data-target = ".bs-docs-sidebar" >
2012-07-08 10:47:36 +02:00
<!-- Navbar
================================================== -->
2012-08-20 08:01:24 +02:00
< div class = "navbar navbar-inverse navbar-fixed-top" >
2012-09-26 07:48:02 +02:00
< div class = "container" >
< button type = "button" class = "btn btn-navbar" data-toggle = "collapse" data-target = ".nav-collapse" >
< span class = "icon-bar" > < / span >
< span class = "icon-bar" > < / span >
< span class = "icon-bar" > < / span >
< / button >
< a class = "brand" href = "./index.html" > Bootstrap< / a >
< div class = "nav-collapse collapse" >
< ul class = "nav" >
< li class = "" >
< a href = "./index.html" > Home< / a >
< / li >
< li class = "active" >
< a href = "./getting-started.html" > Get started< / a >
< / li >
< li class = "" >
2013-01-17 09:58:34 +01:00
< a href = "./css.html" > CSS< / a >
2012-09-26 07:48:02 +02:00
< / li >
< li class = "" >
< a href = "./components.html" > Components< / a >
< / li >
< li class = "" >
< a href = "./javascript.html" > JavaScript< / a >
< / li >
< li class = "" >
< a href = "./customize.html" > Customize< / a >
< / li >
2012-12-05 05:30:21 +01:00
< li class = "" >
< a href = "./gallery.html" > Gallery< / a >
< / li >
2012-09-26 07:48:02 +02:00
< / ul >
2012-07-08 10:47:36 +02:00
< / div >
< / div >
< / div >
2012-07-13 06:38:18 +02:00
<!-- Subhead
2012-07-08 10:47:36 +02:00
================================================== -->
2012-12-20 06:42:36 +01:00
< header class = "bs-docs-jumbotron subhead" >
2012-07-13 03:11:49 +02:00
< div class = "container" >
2012-07-13 06:38:18 +02:00
< h1 > Getting started< / h1 >
2012-08-22 18:48:57 +02:00
< p class = "lead" > Overview of the project, its contents, and how to get started with a simple template.< / p >
2012-07-13 06:38:18 +02:00
< / div >
2012-07-08 10:47:36 +02:00
< / header >
2012-07-24 07:36:08 +02:00
< div class = "container" >
2012-07-08 10:47:36 +02:00
2012-07-24 07:36:08 +02:00
<!-- Docs nav
================================================== -->
< div class = "row" >
< div class = "span3 bs-docs-sidebar" >
2012-08-19 21:04:41 +02:00
< ul class = "nav nav-list bs-docs-sidenav" >
2012-11-04 00:18:02 +01:00
< li > < a href = "#download-bootstrap" > < i class = "glyphicon-chevron-right" > < / i > Download< / a > < / li >
< li > < a href = "#file-structure" > < i class = "glyphicon-chevron-right" > < / i > File structure< / a > < / li >
< li > < a href = "#contents" > < i class = "glyphicon-chevron-right" > < / i > What's included< / a > < / li >
< li > < a href = "#html-template" > < i class = "glyphicon-chevron-right" > < / i > HTML template< / a > < / li >
< li > < a href = "#examples" > < i class = "glyphicon-chevron-right" > < / i > Examples< / a > < / li >
< li > < a href = "#what-next" > < i class = "glyphicon-chevron-right" > < / i > What next?< / a > < / li >
2012-07-24 07:36:08 +02:00
< / ul >
< / div >
< div class = "span9" >
2012-07-08 10:47:36 +02:00
2012-07-24 07:36:08 +02:00
<!-- Download
================================================== -->
< section id = "download-bootstrap" >
< div class = "page-header" >
< h1 > 1. Download< / h1 >
2012-07-13 06:38:18 +02:00
< / div >
2012-09-01 08:51:48 +02:00
< p class = "lead" > Before downloading, be sure to have a code editor (we recommend < a href = "http://sublimetext.com/2" > Sublime Text 2< / a > ) and some working knowledge of HTML and CSS. We won't walk through the source files here, but they are available for download. We'll focus on getting started with the compiled Bootstrap files.< / p >
2012-07-24 07:36:08 +02:00
2012-09-26 07:40:48 +02:00
< div class = "row" >
2012-08-19 21:04:41 +02:00
< div class = "span6" >
2012-07-27 06:45:19 +02:00
< h2 > Download compiled< / h2 >
2012-07-24 07:36:08 +02:00
< p > < strong > Fastest way to get started:< / strong > get the compiled and minified versions of our CSS, JS, and images. No docs or original source files.< / p >
< p > < a class = "btn btn-large btn-primary" href = "assets/bootstrap.zip" > Download Bootstrap< / a > < / p >
< / div >
2012-08-19 21:04:41 +02:00
< div class = "span6" >
2012-07-27 06:45:19 +02:00
< h2 > Download source< / h2 >
2012-08-22 18:51:41 +02:00
< p > Get the original files for all CSS and JavaScript, along with a local copy of the docs by downloading the latest version directly from GitHub.< / p >
2012-07-24 07:36:08 +02:00
< p > < a class = "btn btn-large" href = "https://github.com/twitter/bootstrap/zipball/master" > Download Bootstrap source< / a > < / p >
< / div >
2012-07-13 06:38:18 +02:00
< / div >
2012-07-24 07:36:08 +02:00
< / section >
2012-07-08 10:47:36 +02:00
2012-07-24 07:36:08 +02:00
<!-- File structure
================================================== -->
< section id = "file-structure" >
< div class = "page-header" >
< h1 > 2. File structure< / h1 >
< / div >
2012-08-20 08:01:24 +02:00
< p class = "lead" > Within the download you'll find the following file structure and contents, logically grouping common assets and providing both compiled and minified variations.< / p >
2012-07-24 07:36:08 +02:00
< p > Once downloaded, unzip the compressed folder to see the structure of (the compiled) Bootstrap. You'll see something like this:< / p >
2012-09-14 19:30:55 +02:00
< pre class = "prettyprint" >
bootstrap/
├── css/
│ ├── bootstrap.css
│ ├── bootstrap.min.css
├── js/
│ ├── bootstrap.js
│ ├── bootstrap.min.js
2013-01-15 23:30:00 +01:00
└── fonts/
├── glyphiconshalflings-regular.eot
├── glyphiconshalflings-regular.otf
├── glyphiconshalflings-regular.svg
├── glyphiconshalflings-regular.ttf
└── glyphiconshalflings-regular.woff
2012-07-13 06:38:18 +02:00
< / pre >
2012-07-24 07:36:08 +02:00
< p > This is the most basic form of Bootstrap: compiled files for quick drop-in usage in nearly any web project. We provide compiled CSS and JS (< code > bootstrap.*< / code > ), as well as compiled and minified CSS and JS (< code > bootstrap.min.*< / code > ). The image files are compressed using < a href = "http://imageoptim.com/" > ImageOptim< / a > , a Mac app for compressing PNGs.< / p >
2013-01-15 23:30:00 +01:00
< p > Please note that < strong > all JavaScript plugins require jQuery< / strong > to be included.< / p >
2012-07-24 07:36:08 +02:00
< / section >
2012-07-13 06:38:18 +02:00
2012-07-24 07:36:08 +02:00
<!-- Contents
================================================== -->
< section id = "contents" >
< div class = "page-header" >
< h1 > 3. What's included< / h1 >
< / div >
2012-08-20 08:01:24 +02:00
< p class = "lead" > Bootstrap comes equipped with HTML, CSS, and JS for all sorts of things, but they can be summarized with a handful of categories visible at the top of the < a href = "http://getbootstrap.com" > Bootstrap documentation< / a > .< / p >
2012-07-24 07:36:08 +02:00
2012-07-27 06:45:19 +02:00
< h2 > Docs sections< / h2 >
2013-01-17 09:27:46 +01:00
< p > In addition to the getting started documentation you're reading now, the Bootstrap docs are broken into a few key pages.< / p >
< h4 > < a href = "http://twitter.github.com/bootstrap/css.html" > Core CSS< / a > < / h4 >
< p > Global styles for the body, Normalize, links, grid system, tables, forms, buttons, icons, and more.< / p >
2012-07-24 07:36:08 +02:00
< h4 > < a href = "http://twitter.github.com/bootstrap/components.html" > Components< / a > < / h4 >
2013-01-17 09:27:46 +01:00
< p > Basic styles for common interface components like tabs and pills, navbar, alerts, page headers, and more. Head here to see what kind of custom components Bootstrap has to offer beyond basic HTML elements.< / p >
2012-09-14 15:06:15 +02:00
< h4 > < a href = "http://twitter.github.com/bootstrap/javascript.html" > JavaScript plugins< / a > < / h4 >
< p > Similar to Components, these JavaScript plugins are interactive components for things like tooltips, popovers, modals, and more.< / p >
2012-07-24 07:36:08 +02:00
< / section >
<!-- HTML template
================================================== -->
< section id = "html-template" >
< div class = "page-header" >
< h1 > 4. Basic HTML template< / h1 >
< / div >
2012-12-27 10:49:09 +01:00
< p class = "lead" > With a brief intro into the contents out of the way, we can focus on putting Bootstrap to use. To do that, we'll utilize a basic HTML template that includes everything we mentioned in the < a href = "./getting-started.html#file-structure" > File structure< / a > .< / p >
2012-07-24 07:36:08 +02:00
< p > Now, here's a look at a < strong > typical HTML file< / strong > :< / p >
2012-07-13 09:56:18 +02:00
< pre class = "prettyprint linenums" >
2012-08-27 07:29:40 +02:00
< !DOCTYPE html>
2012-07-13 09:56:18 +02:00
< html>
< head>
< title> Bootstrap 101 Template< /title>
< /head>
< body>
< h1> Hello, world!< /h1>
2012-08-27 18:17:20 +02:00
< script src="http://code.jquery.com/jquery-latest.js"> < /script>
2012-07-13 09:56:18 +02:00
< /body>
< /html>
< / pre >
2012-07-24 07:36:08 +02:00
< p > To make this < strong > a Bootstrapped template< / strong > , just include the appropriate CSS and JS files:< / p >
2012-07-13 09:56:18 +02:00
< pre class = "prettyprint linenums" >
2012-08-27 07:29:40 +02:00
< !DOCTYPE html>
2012-07-13 09:56:18 +02:00
< html>
< head>
< title> Bootstrap 101 Template< /title>
< !-- Bootstrap -->
2012-09-11 07:44:08 +02:00
< link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
2012-07-13 09:56:18 +02:00
< /head>
< body>
< h1> Hello, world!< /h1>
2012-08-27 18:17:20 +02:00
< script src="http://code.jquery.com/jquery-latest.js"> < /script>
2012-07-13 23:25:47 +02:00
< script src="js/bootstrap.min.js"> < /script>
2012-07-13 09:56:18 +02:00
< /body>
< /html>
< / pre >
2012-07-24 07:36:08 +02:00
< p > < strong > And you're set!< / strong > With those two files added, you can begin to develop any site or application with Bootstrap.< / p >
2013-01-17 23:49:52 +01:00
< hr >
< h4 > Responsive features in IE8< / h4 >
< p > Internet Explorer 8 lacks support for media queries, the method by which we deliver responsive CSS to folks. To enable that, you need to include a third party tool (which we include in the project repository) called < a href = "https://github.com/scottjehl/Respond" > Respond.js< / a > .< / p >
< pre class = "prettyprint linenums" >
< !--[if lt IE 9]>
< script src="assets/js/respond/respond.js"> < /script>
< ![endif]-->
< / pre >
2012-07-24 07:36:08 +02:00
< / section >
2012-07-18 06:45:57 +02:00
2012-07-13 06:38:18 +02:00
2012-07-24 07:36:08 +02:00
<!-- Examples
================================================== -->
< section id = "examples" >
< div class = "page-header" >
< h1 > 5. Examples< / h1 >
< / div >
< p class = "lead" > Move beyond the base template with a few example layouts. We encourage folks to iterate on these examples and not simply use them as an end result.< / p >
2013-01-18 00:00:49 +01:00
< div class = "row bs-docs-examples" >
2012-11-02 17:36:51 +01:00
< div class = "span4" >
2012-10-16 19:50:10 +02:00
< a class = "thumbnail" href = "examples/starter-template.html" >
2012-12-21 00:08:05 +01:00
< img src = "assets/img/examples/bootstrap-example-starter.png" alt = "" >
2012-10-16 19:50:10 +02:00
< / a >
< h4 > Starter template< / h4 >
< p > A barebones HTML document with all the Bootstrap CSS and JavaScript included.< / p >
2012-11-02 17:36:51 +01:00
< / div >
2012-10-01 07:45:39 +02:00
< div class = "span4" >
2012-07-24 07:36:08 +02:00
< a class = "thumbnail" href = "examples/hero.html" >
2012-12-21 00:08:05 +01:00
< img src = "assets/img/examples/bootstrap-example-marketing.png" alt = "" >
2012-07-24 07:36:08 +02:00
< / a >
2012-08-19 20:59:28 +02:00
< h4 > Basic marketing site< / h4 >
2012-07-24 07:36:08 +02:00
< p > Featuring a hero unit for a primary message and three supporting elements.< / p >
2012-09-26 08:01:18 +02:00
< / div >
2012-10-01 07:45:39 +02:00
< div class = "span4" >
2012-09-15 00:55:46 +02:00
< a class = "thumbnail" href = "examples/marketing-narrow.html" >
< img src = "assets/img/examples/bootstrap-example-marketing-narrow.png" alt = "" >
< / a >
< h4 > Narrow marketing< / h4 >
< p > Slim, lightweight marketing template for small projects or teams.< / p >
2012-09-26 08:01:18 +02:00
< / div >
2013-01-13 13:26:52 +01:00
< div class = "span4" >
2012-12-21 00:08:05 +01:00
< a class = "thumbnail" href = "examples/justified-nav.html" >
< img src = "assets/img/examples/bootstrap-example-justified-nav.png" alt = "" >
< / a >
< h4 > Justified nav< / h4 >
< p > Marketing page with equal-width navigation links in a modified navbar.< / p >
2013-01-13 13:26:52 +01:00
< / div >
2012-10-01 07:45:39 +02:00
< div class = "span4" >
2012-09-15 00:55:46 +02:00
< a class = "thumbnail" href = "examples/signin.html" >
< img src = "assets/img/examples/bootstrap-example-signin.png" alt = "" >
< / a >
< h4 > Sign in< / h4 >
< p > Barebones sign in form with custom, larger form controls and a flexible layout.< / p >
2012-09-26 08:01:18 +02:00
< / div >
2012-10-01 07:45:39 +02:00
< div class = "span4" >
2012-10-01 07:09:51 +02:00
< a class = "thumbnail" href = "examples/sticky-footer.html" >
< img src = "assets/img/examples/bootstrap-example-sticky-footer.png" alt = "" >
< / a >
< h4 > Sticky footer< / h4 >
< p > Pin a fixed-height footer to the bottom of the user's viewport.< / p >
2012-10-01 07:45:39 +02:00
< / div >
< div class = "span4" >
2012-09-15 00:55:46 +02:00
< a class = "thumbnail" href = "examples/carousel.html" >
< img src = "assets/img/examples/bootstrap-example-carousel.png" alt = "" >
< / a >
< h4 > Carousel jumbotron< / h4 >
< p > A more interactive riff on the basic marketing site featuring a prominent carousel.< / p >
2012-09-26 08:01:18 +02:00
< / div >
< / div >
2012-07-24 07:36:08 +02:00
< / section >
<!-- Next
================================================== -->
< section id = "what-next" >
< div class = "page-header" >
< h1 > What next?< / h1 >
< / div >
< p class = "lead" > Head to the docs for information, examples, and code snippets, or take the next leap and customize Bootstrap for any upcoming project.< / p >
2013-01-17 09:27:46 +01:00
< a class = "btn btn-large btn-primary" href = "./css.html" > Visit the Bootstrap docs< / a >
2012-07-31 00:52:38 +02:00
< a class = "btn btn-large" href = "./customize.html" style = "margin-left: 5px;" > Customize Bootstrap< / a >
2012-07-24 07:36:08 +02:00
< / section >
2012-07-08 10:47:36 +02:00
2012-07-18 06:45:57 +02:00
2012-07-24 07:36:08 +02:00
< / div >
2012-07-13 06:38:18 +02:00
< / div >
2012-07-24 07:36:08 +02:00
2012-07-08 10:47:36 +02:00
< / div >
2012-07-13 06:38:18 +02:00
2012-07-08 10:47:36 +02:00
2012-07-13 02:02:55 +02:00
2012-08-02 04:00:25 +02:00
<!-- Footer
================================================== -->
< footer class = "footer" >
< div class = "container" >
2012-12-01 22:47:07 +01:00
< div class = "bs-docs-social" >
< ul class = "bs-docs-social-buttons" >
< li >
< iframe class = "github-btn" src = "http://ghbtns.com/github-btn.html?user=twitter&repo=bootstrap&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=twitter&repo=bootstrap&type=fork&count=true" allowtransparency = "true" frameborder = "0" scrolling = "0" width = "102px" height = "20px" > < / iframe >
< / li >
< li class = "follow-btn" >
< a href = "https://twitter.com/twbootstrap" class = "twitter-follow-button" data-link-color = "#0069D6" data-show-count = "true" > Follow @twbootstrap< / a >
< / li >
< li class = "tweet-btn" >
< a href = "https://twitter.com/share" class = "twitter-share-button" data-url = "http://twitter.github.com/bootstrap/" data-count = "horizontal" data-via = "twbootstrap" data-related = "mdo:Creator of Twitter Bootstrap" > Tweet< / a >
< / li >
< / ul >
< / div >
2012-10-03 02:01:18 +02:00
< p > Designed and built with all the love in the world by < a href = "http://twitter.com/mdo" target = "_blank" > @mdo< / a > and < a href = "http://twitter.com/fat" target = "_blank" > @fat< / a > .< / p >
< p > Code licensed under < a href = "http://www.apache.org/licenses/LICENSE-2.0" target = "_blank" > Apache License v2.0< / a > , documentation under < a href = "http://creativecommons.org/licenses/by/3.0/" > CC BY 3.0< / a > .< / p >
< p > < a href = "http://glyphicons.com" > Glyphicons Free< / a > licensed under < a href = "http://creativecommons.org/licenses/by/3.0/" > CC BY 3.0< / a > .< / p >
2012-08-02 04:00:25 +02:00
< ul class = "footer-links" >
2012-10-03 02:01:18 +02:00
< li > < a href = "http://blog.getbootstrap.com" > Blog< / a > < / li >
< li class = "muted" > · < / li >
< li > < a href = "https://github.com/twitter/bootstrap/issues?state=open" > Issues< / a > < / li >
< li class = "muted" > · < / li >
2012-08-02 04:00:25 +02:00
< li > < a href = "https://github.com/twitter/bootstrap/wiki" > Roadmap and changelog< / a > < / li >
< / ul >
< / div >
< / footer >
2012-07-13 06:38:18 +02:00
2012-07-08 10:47:36 +02:00
2012-08-02 04:00:25 +02:00
2013-01-18 05:28:05 +01:00
<!-- Bootstrap core JavaScript
2012-08-02 04:00:25 +02:00
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
< script src = "assets/js/jquery.js" > < / script >
< script src = "assets/js/bootstrap-transition.js" > < / script >
< script src = "assets/js/bootstrap-alert.js" > < / script >
< script src = "assets/js/bootstrap-modal.js" > < / script >
< script src = "assets/js/bootstrap-dropdown.js" > < / script >
< script src = "assets/js/bootstrap-scrollspy.js" > < / script >
< script src = "assets/js/bootstrap-tab.js" > < / script >
< script src = "assets/js/bootstrap-tooltip.js" > < / script >
< script src = "assets/js/bootstrap-popover.js" > < / script >
< script src = "assets/js/bootstrap-button.js" > < / script >
< script src = "assets/js/bootstrap-collapse.js" > < / script >
< script src = "assets/js/bootstrap-carousel.js" > < / script >
< script src = "assets/js/bootstrap-typeahead.js" > < / script >
< script src = "assets/js/bootstrap-affix.js" > < / script >
2012-11-30 05:59:14 +01:00
2013-01-18 05:26:17 +01:00
< script type = "text/javascript" src = "http://platform.twitter.com/widgets.js" > < / script >
2012-11-30 05:59:14 +01:00
< script src = "assets/js/holder/holder.js" > < / script >
< script src = "assets/js/google-code-prettify/prettify.js" > < / script >
2012-08-02 04:00:25 +02:00
< script src = "assets/js/application.js" > < / script >
2012-07-08 10:47:36 +02:00
< / body >
< / html >