<pclass="lead">There are a few easy ways to quickly get started with Bootstrap, each one appealing to a different skill level and use case. Read through to see what suits your particular needs.</p>
<divclass="row">
<divclass="col-span-6">
<divclass="col col-lg-6">
<h3>Compiled CSS and JS</h3>
<p><strong>The fastest way to get started:</strong> get the compiled and minified versions of our CSS, JavaScript, and fonts. No documentation or original source files are included.</p>
<p>Install and manage the original files for all CSS and JavaScript, along with a local copy of the docs, using <ahref="http://twitter.github.com/bower">Bower</a>.</p>
<p>On mobile devices, the grid starts out stacked. Above 768px, it becomes horizontal as media queries kick in to apply <code>float</code>s and <code>width</code>s. To create a basic grid layout, wrap a series of <code>.col-span-*</code> elements within a <code>.row</code>. As this is a 12-column grid, each <code>.col-span-*</code> spans a number of those 12 columns, and should always add up to 12 for each row (or the number of columns in the parent), even at mobile resolutions.</p>
<divclass="bs-docs-grid">
<divclass="row show-grid">
<divclass="col-span-1">1</div>
<divclass="col-span-1">1</div>
<divclass="col-span-1">1</div>
<divclass="col-span-1">1</div>
<divclass="col-span-1">1</div>
<divclass="col-span-1">1</div>
<divclass="col-span-1">1</div>
<divclass="col-span-1">1</div>
<divclass="col-span-1">1</div>
<divclass="col-span-1">1</div>
<divclass="col-span-1">1</div>
<divclass="col-span-1">1</div>
<divclass="col col-lg-1">1</div>
<divclass="col col-lg-1">1</div>
<divclass="col col-lg-1">1</div>
<divclass="col col-lg-1">1</div>
<divclass="col col-lg-1">1</div>
<divclass="col col-lg-1">1</div>
<divclass="col col-lg-1">1</div>
<divclass="col col-lg-1">1</div>
<divclass="col col-lg-1">1</div>
<divclass="col col-lg-1">1</div>
<divclass="col col-lg-1">1</div>
<divclass="col col-lg-1">1</div>
</div>
<divclass="row show-grid">
<divclass="col-span-4">4</div>
<divclass="col-span-4">4</div>
<divclass="col-span-4">4</div>
<divclass="col col-lg-4">4</div>
<divclass="col col-lg-4">4</div>
<divclass="col col-lg-4">4</div>
</div>
<divclass="row show-grid">
<divclass="col-span-6">6</div>
<divclass="col-span-6">6</div>
<divclass="col col-lg-6">6</div>
<divclass="col col-lg-6">6</div>
</div>
</div>
{% highlight html linenos %}
<divclass="row">
<divclass="col-span-1">1</div>
<divclass="col-span-1">1</div>
<divclass="col-span-1">1</div>
<divclass="col-span-1">1</div>
<divclass="col-span-1">1</div>
<divclass="col-span-1">1</div>
<divclass="col-span-1">1</div>
<divclass="col-span-1">1</div>
<divclass="col-span-1">1</div>
<divclass="col-span-1">1</div>
<divclass="col-span-1">1</div>
<divclass="col-span-1">1</div>
<divclass="col col-lg-1">1</div>
<divclass="col col-lg-1">1</div>
<divclass="col col-lg-1">1</div>
<divclass="col col-lg-1">1</div>
<divclass="col col-lg-1">1</div>
<divclass="col col-lg-1">1</div>
<divclass="col col-lg-1">1</div>
<divclass="col col-lg-1">1</div>
<divclass="col col-lg-1">1</div>
<divclass="col col-lg-1">1</div>
<divclass="col col-lg-1">1</div>
<divclass="col col-lg-1">1</div>
</div>
<divclass="row">
<divclass="col-span-4">4</div>
<divclass="col-span-4">4</div>
<divclass="col-span-4">4</div>
<divclass="col col-lg-4">4</div>
<divclass="col col-lg-4">4</div>
<divclass="col col-lg-4">4</div>
</div>
<divclass="row">
<divclass="col-span-6">6</div>
<divclass="col-span-6">6</div>
<divclass="col col-lg-6">6</div>
<divclass="col col-lg-6">6</div>
</div>
{% endhighlight %}
<h3id="grid-offsetting">Offsetting columns</h3>
<p>Move columns to the right using <code>.col-offset-*</code> classes. These classes increase the left margin of a column by <code>*</code> columns. For example, <code>.col-offset-4</code> moves <code>.col-span-4</code> over four columns.</p>
<p>Move columns to the right using <code>.col-offset-*</code> classes. These classes increase the left margin of a column by <code>*</code> columns. For example, <code>.col-offset-4</code> moves <code>.col col-lg-4</code> over four columns.</p>
<p>To nest your content with the default grid, add a new <code>.row</code> and set of <code>.col-span-*</code> columns within an existing <code>.col-span-*</code> column. Nested rows should include a set of columns that add up to 12.</p>
<p>Easily change the order of our built-in grid columns with <code>.col-push-*</code> and <code>.col-pull-*</code> modifier classes.</p>
<divclass="row show-grid">
<divclass="col-span-9 col-push-3">9</div>
<divclass="col-span-3 col-pull-9">3</div>
<divclass="col col-lg-9 col-push-3">9</div>
<divclass="col col-lg-3 col-pull-9">3</div>
</div>
{% highlight html linenos %}
<divclass="row show-grid">
<divclass="col-span-9 col-push-3">9</div>
<divclass="col-span-3 col-pull-9">3</div>
<divclass="col col-lg-9 col-push-3">9</div>
<divclass="col col-lg-3 col-pull-9">3</div>
</div>
{% endhighlight %}
<h3id="grid-small">Small device grid</h3>
<p>Use the small device grid classes, like <code>.col-small-span-6</code>, to create columned layouts on phone and tablet devices (anything under 768px). Offsets, pushes, and pulls are not available with the small grid at this time.</p>
<p>Use the small device grid classes, like <code>.col-sm-6</code>, to create columned layouts on phone and tablet devices (anything under 768px). Offsets, pushes, and pulls are not available with the small grid at this time.</p>
<divclass="row show-grid">
<divclass="col-span-4 col-small-span-6">4 cols, 6 small cols</div>
<divclass="col-span-4 col-small-span-6">4 cols, 6 small cols</div>
<divclass="col-span-4 col-small-span-12">4 cols, 12 small cols</div>
<divclass="col col-lg-4 col-sm-6">4 cols, 6 small cols</div>
<divclass="col col-lg-4 col-sm-6">4 cols, 6 small cols</div>
<divclass="col col-lg-4 col-sm-12">4 cols, 12 small cols</div>
</div>
{% highlight html linenos %}
<divclass="row">
<divclass="col-span-4 col-small-span-6">4 cols, 6 small cols</div>
<divclass="col-span-4 col-small-span-6">4 cols, 6 small cols</div>
<divclass="col-span-4 col-small-span-12">4 cols, 12 small cols</div>
<divclass="col col-lg-4 col-sm-6">4 cols, 6 small cols</div>
<divclass="col col-lg-4 col-sm-6">4 cols, 6 small cols</div>
<divclass="col col-lg-4 col-sm-12">4 cols, 12 small cols</div>
</div>
{% endhighlight %}
...
...
@@ -1186,8 +1186,8 @@ For example, <code><section></code> should be wrapped as inline.
<p>Use contextual classes to color table rows.</p>
<tableclass="table table-bordered table-striped">
<colgroup>
<colclass="col-span-1">
<colclass="col-span-7">
<colclass="col col-lg-1">
<colclass="col col-lg-7">
</colgroup>
<thead>
<tr>
...
...
@@ -1316,8 +1316,8 @@ For example, <code><section></code> should be wrapped as inline.
<h3id="forms-inline">Inline form</h3>
<p>Add <code>.form-inline</code> for left-aligned labels and inline-block controls for a compact layout.</p>
@@ -1750,14 +1750,14 @@ For example, <code><section></code> should be wrapped as inline.
<h4>Buttons instead of text</h4>
<p>Buttons in input groups are a bit different and require one extra level of nesting. Instead of <code>.input-group-addon</code>, you'll need to use <code>.input-group-btn</code> to wrap the buttons. This is required due to default browser styles that cannot be overridden.</p>
<formclass="bs-docs-example">
<divclass="input-group col-span-7">
<divclass="input-group col col-lg-7">
<spanclass="input-group-btn">
<buttonclass="btn"type="button">Go!</button>
</span>
<inputtype="text">
</div>
<br>
<divclass="input-group col-span-7">
<divclass="input-group col col-lg-7">
<inputtype="text">
<spanclass="input-group-btn">
<buttonclass="btn"type="button">Go!</button>
...
...
@@ -1765,14 +1765,14 @@ For example, <code><section></code> should be wrapped as inline.
</div>
</form>
{% highlight html linenos %}
<divclass="input-group col-span-7">
<divclass="input-group col col-lg-7">
<spanclass="input-group-btn">
<buttonclass="btn"type="button">Go!</button>
</span>
<inputtype="text">
</div>
<divclass="input-group col-span-7">
<divclass="input-group col col-lg-7">
<inputtype="text">
<spanclass="input-group-btn">
<buttonclass="btn"type="button">Go!</button>
...
...
@@ -1783,7 +1783,7 @@ For example, <code><section></code> should be wrapped as inline.
@@ -1961,27 +1961,27 @@ For example, <code><section></code> should be wrapped as inline.
<p>If you need multiple inputs on the same line, wrap them in the standard grid markup (with <code>.row</code> and <code>.col-span-*</code> classes). Each input should have it's own column and will expand to fill the available width automatically.</p>