@@ -435,150 +435,8 @@ For example, <code>section</code> should be wrapped as inline.
...
@@ -435,150 +435,8 @@ For example, <code>section</code> should be wrapped as inline.
<h1>Tables <small>For, you guessed it, tabular data</small></h1>
<h1>Tables <small>For, you guessed it, tabular data</small></h1>
</div>
</div>
<h2>Default styles</h2>
<p>For basic styling—light padding and only horizontal dividers—add the base class <code>.table</code> to any <code><table></code>.</p>
<h2>Table markup</h2>
<tableclass="table table-bordered table-striped">
<colgroup>
<colclass="span1">
<colclass="span7">
</colgroup>
<thead>
<tr>
<th>Tag</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<code><table></code>
</td>
<td>
Wrapping element for displaying data in a tabular format
</td>
</tr>
<tr>
<td>
<code><thead></code>
</td>
<td>
Container element for table header rows (<code><tr></code>) to label table columns
</td>
</tr>
<tr>
<td>
<code><tbody></code>
</td>
<td>
Container element for table rows (<code><tr></code>) in the body of the table
</td>
</tr>
<tr>
<td>
<code><tr></code>
</td>
<td>
Container element for a set of table cells (<code><td></code> or <code><th></code>) that appears on a single row
</td>
</tr>
<tr>
<td>
<code><td></code>
</td>
<td>
Default table cell
</td>
</tr>
<tr>
<td>
<code><th></code>
</td>
<td>
Special table cell for column (or row, depending on scope and placement) labels<br>
Must be used within a <code><thead></code>
</td>
</tr>
<tr>
<td>
<code><caption></code>
</td>
<td>
Description or summary of what the table holds, especially useful for screen readers
</td>
</tr>
</tbody>
</table>
<preclass="prettyprint linenums">
<table>
<thead>
<tr>
<th>…</th>
<th>…</th>
</tr>
</thead>
<tbody>
<tr>
<td>…</td>
<td>…</td>
</tr>
</tbody>
</table>
</pre>
<h2>Table options</h2>
<tableclass="table table-bordered table-striped">
<thead>
<tr>
<th>Name</th>
<th>Class</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Default</td>
<tdclass="muted">None</td>
<td>No styles, just columns and rows</td>
</tr>
<tr>
<td>Basic</td>
<td>
<code>.table</code>
</td>
<td>Only horizontal lines between rows</td>
</tr>
<tr>
<td>Bordered</td>
<td>
<code>.table-bordered</code>
</td>
<td>Rounds corners and adds outer border</td>
</tr>
<tr>
<td>Zebra-stripe</td>
<td>
<code>.table-striped</code>
</td>
<td>Adds light gray background color to odd rows (1, 3, 5, etc)</td>
</tr>
<tr>
<td>Condensed</td>
<td>
<code>.table-condensed</code>
</td>
<td>Cuts vertical padding in half, from 8px to 4px, within all <code>td</code> and <code>th</code> elements</td>
</tr>
</tbody>
</table>
<h2>Example tables</h2>
<h3>1. Default table styles</h3>
<p>Tables are automatically styled with only a few borders to ensure readability and maintain structure. With 2.0, the <code>.table</code> class is required.</p>
<divclass="bs-docs-example">
<divclass="bs-docs-example">
<tableclass="table">
<tableclass="table">
<thead>
<thead>
...
@@ -617,9 +475,15 @@ For example, <code>section</code> should be wrapped as inline.
...
@@ -617,9 +475,15 @@ For example, <code>section</code> should be wrapped as inline.
</table>
</table>
</pre>
</pre>
<h3>2. Striped table</h3>
<p>Get a little fancy with your tables by adding zebra-striping—just add the <code>.table-striped</code> class.</p>
<hrclass="bs-docs-separator">
<pclass="muted"><strong>Note:</strong> Striped tables use the <code>:nth-child</code> CSS selector and is not available in IE7-IE8.</p>
<h2>Optional classes</h2>
<p>Add any of the follow classes to the <code>.table</code> base class.</p>
<h3><code>.table-striped</code></h3>
<p>Adds zebra-striping to any table row within the <code><tbody></code> via the <code>:nth-child</code> CSS selector (not available in IE7-IE8).</p>
<divclass="bs-docs-example">
<divclass="bs-docs-example">
<tableclass="table table-striped">
<tableclass="table table-striped">
<thead>
<thead>
...
@@ -658,9 +522,8 @@ For example, <code>section</code> should be wrapped as inline.
...
@@ -658,9 +522,8 @@ For example, <code>section</code> should be wrapped as inline.
</table>
</table>
</pre>
</pre>
<h3><code>.table-bordered</code></h3>
<h3>3. Bordered table</h3>
<p>Add borders and rounded corners to the table.</p>
<p>Add borders around the entire table and rounded corners for aesthetic purposes.</p>
<divclass="bs-docs-example">
<divclass="bs-docs-example">
<tableclass="table table-bordered">
<tableclass="table table-bordered">
<thead>
<thead>
...
@@ -703,8 +566,8 @@ For example, <code>section</code> should be wrapped as inline.
...
@@ -703,8 +566,8 @@ For example, <code>section</code> should be wrapped as inline.
</table>
</table>
</pre>
</pre>
<h3>4. Condensed table</h3>
<h3><code>.table-condensed</code></h3>
<p>Make your tables more compact by adding the <code>.table-condensed</code> class to cut table cell padding in half (from 8px to 4px).</p>
<p>Makes tables more compact by cutting cell padding in half.</p>
<divclass="bs-docs-example">
<divclass="bs-docs-example">
<tableclass="table table-condensed">
<tableclass="table table-condensed">
<thead>
<thead>
...
@@ -743,48 +606,96 @@ For example, <code>section</code> should be wrapped as inline.
...
@@ -743,48 +606,96 @@ For example, <code>section</code> should be wrapped as inline.
</pre>
</pre>
<h3>5. Combine them all!</h3>
<hrclass="bs-docs-separator">
<p>Feel free to combine any of the table classes to achieve different looks by utilizing any of the available classes.</p>
<h1>{{_i}}Tables <small>For, you guessed it, tabular data</small>{{/i}}</h1>
<h1>{{_i}}Tables <small>For, you guessed it, tabular data</small>{{/i}}</h1>
</div>
</div>
<h2>{{_i}}Default styles{{/i}}</h2>
<p>{{_i}}For basic styling—light padding and only horizontal dividers—add the base class <code>.table</code> to any <code><table></code>.{{/i}}</p>
<h2>{{_i}}Table markup{{/i}}</h2>
<tableclass="table table-bordered table-striped">
<colgroup>
<colclass="span1">
<colclass="span7">
</colgroup>
<thead>
<tr>
<th>{{_i}}Tag{{/i}}</th>
<th>{{_i}}Description{{/i}}</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<code><table></code>
</td>
<td>
{{_i}}Wrapping element for displaying data in a tabular format{{/i}}
</td>
</tr>
<tr>
<td>
<code><thead></code>
</td>
<td>
{{_i}}Container element for table header rows (<code><tr></code>) to label table columns{{/i}}
</td>
</tr>
<tr>
<td>
<code><tbody></code>
</td>
<td>
{{_i}}Container element for table rows (<code><tr></code>) in the body of the table{{/i}}
</td>
</tr>
<tr>
<td>
<code><tr></code>
</td>
<td>
{{_i}}Container element for a set of table cells (<code><td></code> or <code><th></code>) that appears on a single row{{/i}}
</td>
</tr>
<tr>
<td>
<code><td></code>
</td>
<td>
{{_i}}Default table cell{{/i}}
</td>
</tr>
<tr>
<td>
<code><th></code>
</td>
<td>
{{_i}}Special table cell for column (or row, depending on scope and placement) labels{{/i}}<br>
{{_i}}Must be used within a <code><thead></code>{{/i}}
</td>
</tr>
<tr>
<td>
<code><caption></code>
</td>
<td>
{{_i}}Description or summary of what the table holds, especially useful for screen readers{{/i}}
</td>
</tr>
</tbody>
</table>
<preclass="prettyprint linenums">
<table>
<thead>
<tr>
<th>…</th>
<th>…</th>
</tr>
</thead>
<tbody>
<tr>
<td>…</td>
<td>…</td>
</tr>
</tbody>
</table>
</pre>
<h2>{{_i}}Table options{{/i}}</h2>
<tableclass="table table-bordered table-striped">
<thead>
<tr>
<th>{{_i}}Name{{/i}}</th>
<th>{{_i}}Class{{/i}}</th>
<th>{{_i}}Description{{/i}}</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{_i}}Default{{/i}}</td>
<tdclass="muted">{{_i}}None{{/i}}</td>
<td>{{_i}}No styles, just columns and rows{{/i}}</td>
</tr>
<tr>
<td>{{_i}}Basic{{/i}}</td>
<td>
<code>.table</code>
</td>
<td>{{_i}}Only horizontal lines between rows{{/i}}</td>
</tr>
<tr>
<td>{{_i}}Bordered{{/i}}</td>
<td>
<code>.table-bordered</code>
</td>
<td>{{_i}}Rounds corners and adds outer border{{/i}}</td>
</tr>
<tr>
<td>{{_i}}Zebra-stripe{{/i}}</td>
<td>
<code>.table-striped</code>
</td>
<td>{{_i}}Adds light gray background color to odd rows (1, 3, 5, etc){{/i}}</td>
</tr>
<tr>
<td>{{_i}}Condensed{{/i}}</td>
<td>
<code>.table-condensed</code>
</td>
<td>{{_i}}Cuts vertical padding in half, from 8px to 4px, within all <code>td</code> and <code>th</code> elements{{/i}}</td>
</tr>
</tbody>
</table>
<h2>{{_i}}Example tables{{/i}}</h2>
<h3>1. {{_i}}Default table styles{{/i}}</h3>
<p>{{_i}}Tables are automatically styled with only a few borders to ensure readability and maintain structure. With 2.0, the <code>.table</code> class is required.{{/i}}</p>
<divclass="bs-docs-example">
<divclass="bs-docs-example">
<tableclass="table">
<tableclass="table">
<thead>
<thead>
...
@@ -548,9 +406,15 @@
...
@@ -548,9 +406,15 @@
</table>
</table>
</pre>
</pre>
<h3>2. {{_i}}Striped table{{/i}}</h3>
<p>{{_i}}Get a little fancy with your tables by adding zebra-striping—just add the <code>.table-striped</code> class.{{/i}}</p>
<hrclass="bs-docs-separator">
<pclass="muted">{{_i}}<strong>Note:</strong> Striped tables use the <code>:nth-child</code> CSS selector and is not available in IE7-IE8.{{/i}}</p>
<h2>{{_i}}Optional classes{{/i}}</h2>
<p>{{_i}}Add any of the follow classes to the <code>.table</code> base class.{{/i}}</p>
<h3><code>{{_i}}.table-striped{{/i}}</code></h3>
<p>{{_i}}Adds zebra-striping to any table row within the <code><tbody></code> via the <code>:nth-child</code> CSS selector (not available in IE7-IE8).{{/i}}</p>
<divclass="bs-docs-example">
<divclass="bs-docs-example">
<tableclass="table table-striped">
<tableclass="table table-striped">
<thead>
<thead>
...
@@ -589,9 +453,8 @@
...
@@ -589,9 +453,8 @@
</table>
</table>
</pre>
</pre>
<h3><code>{{_i}}.table-bordered{{/i}}</code></h3>
<h3>3. {{_i}}Bordered table{{/i}}</h3>
<p>{{_i}}Add borders and rounded corners to the table.{{/i}}</p>
<p>{{_i}}Add borders around the entire table and rounded corners for aesthetic purposes.{{/i}}</p>
<p>{{_i}}Make your tables more compact by adding the <code>.table-condensed</code> class to cut table cell padding in half (from 8px to 4px).{{/i}}</p>
<p>{{_i}}Makes tables more compact by cutting cell padding in half.{{/i}}</p>
<divclass="bs-docs-example">
<divclass="bs-docs-example">
<tableclass="table table-condensed">
<tableclass="table table-condensed">
<thead>
<thead>
...
@@ -674,48 +537,96 @@
...
@@ -674,48 +537,96 @@
</pre>
</pre>
<h3>5. {{_i}}Combine them all!{{/i}}</h3>
<hrclass="bs-docs-separator">
<p>{{_i}}Feel free to combine any of the table classes to achieve different looks by utilizing any of the available classes.{{/i}}</p>