<p class="lead">Bootstrap includes a responsive, percent-based grid system that appropriately scales up to 12 columns as the device or viewport size increases—in other words, it's mobile first. It includes <a href="#grid-example">predefined classes</a> for this, as well as powerful <a href="#grid-less">mixins for generating semantic layouts</a>.</p>
<h3 id="grid-example">Grid example</h3>
- <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>.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>
+ <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>
<div class="bs-docs-grid">
<div class="row show-grid">
<div class="col-span-1">1</div>
<p>Use contextual classes to color table rows.</p>
<table class="table table-bordered table-striped">
<colgroup>
- <col class="span1">
- <col class="span7">
+ <col class="col-span-1">
+ <col class="col-span-7">
</colgroup>
<thead>
<tr>
<p>Add text or buttons before, after, or on both sides of any text-based input. Use <code>.input-group</code> with a <code>.add-on</code> to prepend or append elements to an <code><input></code>.</p>
<p>Avoid using <code><select></code> elements here as they cannot be fully styled in WebKit browsers.</p>
<form class="bs-docs-example">
- <div class="input-group span9">
+ <div class="input-group col-span-9">
<span class="input-group-addon">@</span>
<input type="text" placeholder="Username">
</div>
<br>
- <div class="input-group span6">
+ <div class="input-group col-span-6">
<input type="text">
<span class="input-group-addon">.00</span>
</div>
</div>
</form>
{% highlight html linenos %}
-<div class="input-group span9">
+<div class="input-group col-span-9">
<span class="input-group-addon">@</span>
<input type="text" placeholder="Username">
</div>
-<div class="input-group span6">
+<div class="input-group col-span-6">
<input type="text">
<span class="input-group-addon">.00</span>
</div>
<h4>Optional sizes</h4>
<p>Add the relative form sizing classes to the `.input-group-addon`.</p>
<form class="bs-docs-example">
- <div class="input-group span9">
+ <div class="input-group col-span-9">
<span class="input-group-addon input-large">@</span>
<input type="text" class="input-large" placeholder="Username">
</div>
<br>
- <div class="input-group span9">
+ <div class="input-group col-span-9">
<span class="input-group-addon">@</span>
<input type="text" placeholder="Username">
</div>
<br>
- <div class="input-group span9">
+ <div class="input-group col-span-9">
<span class="input-group-addon input-small">@</span>
<input type="text" class="input-small" placeholder="Username">
</div>
</form>
{% highlight html linenos %}
-<div class="input-group span9">
+<div class="input-group col-span-9">
<span class="input-group-addon input-large">@</span>
<input type="text" class="input-large" placeholder="Username">
</div>
-<div class="input-group span9">
+<div class="input-group col-span-9">
<span class="input-group-addon">@</span>
<input type="text" placeholder="Username">
</div>
-<div class="input-group span9">
+<div class="input-group col-span-9">
<span class="input-group-addon input-small">@</span>
<input type="text" class="input-small" placeholder="Username">
</div>
<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>
<form class="bs-docs-example">
- <div class="input-group span7">
+ <div class="input-group col-span-7">
<span class="input-group-btn">
<button class="btn" type="button">Go!</button>
</span>
<input type="text">
</div>
<br>
- <div class="input-group span7">
+ <div class="input-group col-span-7">
<input type="text">
<span class="input-group-btn">
<button class="btn" type="button">Go!</button>
</div>
</form>
{% highlight html linenos %}
-<div class="input-group span7">
+<div class="input-group col-span-7">
<span class="input-group-btn">
<button class="btn" type="button">Go!</button>
</span>
<input type="text">
</div>
-<div class="input-group span7">
+<div class="input-group col-span-7">
<input type="text">
<span class="input-group-btn">
<button class="btn" type="button">Go!</button>
<h4>Button dropdowns</h4>
<p></p>
<form class="bs-docs-example">
- <div class="input-group span7">
+ <div class="input-group col-span-7">
<div class="input-group-btn">
<button class="btn dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button>
<ul class="dropdown-menu">
<input type="text">
</div><!-- /input-group -->
<br>
- <div class="input-group span7">
+ <div class="input-group col-span-7">
<input type="text">
<div class="input-group-btn">
<button class="btn dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button>
</div><!-- /input-group -->
</form>
{% highlight html linenos %}
-<div class="input-group span7">
+<div class="input-group col-span-7">
<div class="input-group-btn">
<button class="btn dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button>
<ul class="dropdown-menu">
<input type="text">
</div><!-- /input-group -->
-<div class="input-group span7">
+<div class="input-group col-span-7">
<input type="text">
<div class="input-group-btn">
<button class="btn dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button>
<h4>Segmented dropdown groups</h4>
<form class="bs-docs-example">
- <div class="input-group span7">
+ <div class="input-group col-span-7">
<div class="input-group-btn">
<button class="btn" tabindex="-1">Action</button>
<button class="btn dropdown-toggle" data-toggle="dropdown" tabindex="-1">
<br>
- <div class="input-group span7">
+ <div class="input-group col-span-7">
<input type="text">
<div class="input-group-btn">
<button class="btn" tabindex="-1">Action</button>
</div>
</form>
{% highlight html linenos %}
-<div class="input-group span7">
+<div class="input-group col-span-7">
<div class="input-group-btn">
<!-- Button and dropdown menu -->
</div>
<input type="text">
</div>
-<div class="input-group span7">
+<div class="input-group col-span-7">
<input type="text">
<div class="input-group-btn btn-group">
<!-- Button and dropdown menu -->
{% endhighlight %}
<h4>Column sizing</h4>
- <p>Use <code>.span1</code> to <code>.span12</code> for setting widths on inputs that match Bootstrap's grid system.</p>
+ <p>Use <code>.col-span-12</code> to <code>.col-span-12</code> for setting widths on inputs that match Bootstrap's grid system.</p>
<form class="bs-docs-example" style="padding-bottom: 15px;">
<div class="controls docs-input-sizes">
- <input class="span1" type="text" placeholder=".span1">
+ <input class="col-span-1" type="text" placeholder=".col-span-1">
<input class="span2" type="text" placeholder=".span2">
<input class="col-span-3" type="text" placeholder=".col-span-3">
- <select class="span1">
+ <select class="col-span-1">
<option>1</option>
<option>2</option>
<option>3</option>
</div>
</form>
{% highlight html linenos %}
-<input class="span1" type="text" placeholder=".span1">
+<input class="col-span-1" type="text" placeholder=".col-span-1">
<input class="span2" type="text" placeholder=".span2">
<input class="col-span-3" type="text" placeholder=".col-span-3">
-<select class="span1">
+<select class="col-span-1">
...
</select>
<select class="span2">
</li>
</ul>
<form class="navbar-form pull-left" action="">
- <input type="text" class="span8" placeholder="Search">
+ <input type="text" class="col-span-8" placeholder="Search">
</form>
<ul class="nav pull-right">
<li><a href="#">Link</a></li>
{% endhighlight %}
<div class="alert alert-info">
- <strong>Heads up!</strong> The responsive navbar requires the <a href="./javascript.html#collapse">collapse plugin</a> and <a href="./scaffolding.html#responsive">responsive Bootstrap CSS file</a>.
+ <strong>Heads up!</strong> The responsive navbar requires the <a href="#collapse">collapse plugin</a>.
</div>
</li>
</ul>
<form class="navbar-form pull-left" action="">
- <input type="text" class="span8" placeholder="Search">
+ <input type="text" class="col-span-8" placeholder="Search">
</form>
<ul class="nav pull-right">
<li><a href="#">Link</a></li>