<h1>Tables <small>For, you guessed it, tabular data</small></h1>
<h1>{{_i}}Tables <small>For, you guessed it, tabular data</small>{{/i}}</h1>
</div>
</div>
<h2>Table markup</h2>
<h2>{{_i}}Table markup{{/i}}</h2>
<divclass="row">
<divclass="row">
<divclass="span8">
<divclass="span8">
<tableclass="table table-bordered table-striped">
<tableclass="table table-bordered table-striped">
<thead>
<thead>
<tr>
<tr>
<th>Tag</th>
<th>{{_i}}Tag{{/i}}</th>
<th>Description</th>
<th>{{_i}}Description{{/i}}</th>
</tr>
</tr>
</thead>
</thead>
<tbody>
<tbody>
...
@@ -401,7 +401,7 @@
...
@@ -401,7 +401,7 @@
<code><table></code>
<code><table></code>
</td>
</td>
<td>
<td>
Wrapping element for displaying data in a tabular format
{{_i}}Wrapping element for displaying data in a tabular format{{/i}}
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -409,7 +409,7 @@
...
@@ -409,7 +409,7 @@
<code><thead></code>
<code><thead></code>
</td>
</td>
<td>
<td>
Container element for table header rows (<code><tr></code>) to label table columns
{{_i}}Container element for table header rows (<code><tr></code>) to label table columns{{/i}}
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -417,7 +417,7 @@
...
@@ -417,7 +417,7 @@
<code><tbody></code>
<code><tbody></code>
</td>
</td>
<td>
<td>
Container element for table rows (<code><tr></code>) in the body of the table
{{_i}}Container element for table rows (<code><tr></code>) in the body of the table{{/i}}
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -425,7 +425,7 @@
...
@@ -425,7 +425,7 @@
<code><tr></code>
<code><tr></code>
</td>
</td>
<td>
<td>
Container element for a set of table cells (<code><td></code> or <code><th></code>) that appears on a single row
{{_i}}Container element for a set of table cells (<code><td></code> or <code><th></code>) that appears on a single row{{/i}}
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -433,7 +433,7 @@
...
@@ -433,7 +433,7 @@
<code><td></code>
<code><td></code>
</td>
</td>
<td>
<td>
Default table cell
{{_i}}Default table cell{{/i}}
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -441,8 +441,8 @@
...
@@ -441,8 +441,8 @@
<code><th></code>
<code><th></code>
</td>
</td>
<td>
<td>
Special table cell for column (or row, depending on scope and placement) labels<br>
{{_i}}Special table cell for column (or row, depending on scope and placement) labels{{/i}}<br>
Must be used within a <code><thead></code>
{{_i}}Must be used within a <code><thead></code>{{/i}}
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -450,7 +450,7 @@
...
@@ -450,7 +450,7 @@
<code><caption></code>
<code><caption></code>
</td>
</td>
<td>
<td>
Description or summary of what the table holds, especially useful for screen readers
{{_i}}Description or summary of what the table holds, especially useful for screen readers{{/i}}
</td>
</td>
</tr>
</tr>
</tbody>
</tbody>
...
@@ -461,14 +461,14 @@
...
@@ -461,14 +461,14 @@
<table>
<table>
<thead>
<thead>
<tr>
<tr>
<th>...</th>
<th>…</th>
<th>...</th>
<th>…</th>
</tr>
</tr>
</thead>
</thead>
<tbody>
<tbody>
<tr>
<tr>
<td>...</td>
<td>…</td>
<td>...</td>
<td>…</td>
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
...
@@ -476,62 +476,62 @@
...
@@ -476,62 +476,62 @@
</div>
</div>
</div>
</div>
<h2>Table options</h2>
<h2>{{_i}}Table options{{/i}}</h2>
<tableclass="table table-bordered table-striped">
<tableclass="table table-bordered table-striped">
<thead>
<thead>
<tr>
<tr>
<th>Name</th>
<th>{{_i}}Name{{/i}}</th>
<th>Class</th>
<th>{{_i}}Class{{/i}}</th>
<th>Description</th>
<th>{{_i}}Description{{/i}}</th>
</tr>
</tr>
</thead>
</thead>
<tbody>
<tbody>
<tr>
<tr>
<td>Default</td>
<td>{{_i}}Default{{/i}}</td>
<tdclass="muted">None</td>
<tdclass="muted">{{_i}}None{{/i}}</td>
<td>No styles, just columns and rows</td>
<td>{{_i}}No styles, just columns and rows{{/i}}</td>
</tr>
</tr>
<tr>
<tr>
<td>Basic</td>
<td>{{_i}}Basic{{/i}}</td>
<td>
<td>
<code>.table</code>
<code>.table</code>
</td>
</td>
<td>Only horizontal lines between rows</td>
<td>{{_i}}Only horizontal lines between rows{{/i}}</td>
</tr>
</tr>
<tr>
<tr>
<td>Bordered</td>
<td>{{_i}}Bordered{{/i}}</td>
<td>
<td>
<code>.table-bordered</code>
<code>.table-bordered</code>
</td>
</td>
<td>Rounds corners and adds outter border</td>
<td>{{_i}}Rounds corners and adds outter border{{/i}}</td>
</tr>
</tr>
<tr>
<tr>
<td>Zebra-stripe</td>
<td>{{_i}}Zebra-stripe{{/i}}</td>
<td>
<td>
<code>.table-striped</code>
<code>.table-striped</code>
</td>
</td>
<td>Adds light gray background color to odd rows (1, 3, 5, etc)</td>
<td>{{_i}}Adds light gray background color to odd rows (1, 3, 5, etc){{/i}}</td>
</tr>
</tr>
<tr>
<tr>
<td>Condensed</td>
<td>{{_i}}Condensed{{/i}}</td>
<td>
<td>
<code>.table-condensed</code>
<code>.table-condensed</code>
</td>
</td>
<td>Cuts vertical padding in half, from 8px to 4px, within all <code>td</code> and <code>th</code> elements</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>
</tr>
</tbody>
</tbody>
</table>
</table>
<h2>Example tables</h2>
<h2>{{_i}}Example tables{{/i}}</h2>
<h3>1. Default table styles</h3>
<h3>1. {{_i}}Default table styles{{/i}}</h3>
<divclass="row">
<divclass="row">
<divclass="span4">
<divclass="span4">
<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>
<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>
<preclass="prettyprint linenums">
<preclass="prettyprint linenums">
<table class="table">
<table class="table">
...
…
</table></pre>
</table></pre>
</div>
</div>
<divclass="span8">
<divclass="span8">
...
@@ -539,9 +539,9 @@
...
@@ -539,9 +539,9 @@
<thead>
<thead>
<tr>
<tr>
<th>#</th>
<th>#</th>
<th>First Name</th>
<th>{{_i}}First Name{{/i}}</th>
<th>Last Name</th>
<th>{{_i}}Last Name{{/i}}</th>
<th>Language</th>
<th>{{_i}}Language{{/i}}</th>
</tr>
</tr>
</thead>
</thead>
<tbody>
<tbody>
...
@@ -569,14 +569,14 @@
...
@@ -569,14 +569,14 @@
</div>
</div>
<h3>2. Striped table</h3>
<h3>2. {{_i}}Striped table{{/i}}</h3>
<divclass="row">
<divclass="row">
<divclass="span4">
<divclass="span4">
<p>Get a little fancy with your tables by adding zebra-striping—just add the <code>.table-striped</code> class.</p>
<p>{{_i}}Get a little fancy with your tables by adding zebra-striping—just add the <code>.table-striped</code> class.{{/i}}</p>
<pclass="muted"><strong>Note:</strong> Sprited tables use the <code>:nth-child</code> CSS selector and is not available in IE7-IE8.</p>
<pclass="muted">{{_i}}<strong>Note:</strong> Sprited tables use the <code>:nth-child</code> CSS selector and is not available in IE7-IE8.{{/i}}</p>
<p>Add borders around the entire table and rounded corners for aesthetic purposes.</p>
<p>{{_i}}Add borders around the entire table and rounded corners for aesthetic purposes.{{/i}}</p>
<preclass="prettyprint linenums">
<preclass="prettyprint linenums">
<table class="table table-bordered">
<table class="table table-bordered">
...
…
</table></pre>
</table></pre>
</div>
</div>
<divclass="span8">
<divclass="span8">
...
@@ -628,9 +628,9 @@
...
@@ -628,9 +628,9 @@
<thead>
<thead>
<tr>
<tr>
<th>#</th>
<th>#</th>
<th>First Name</th>
<th>{{_i}}First Name{{/i}}</th>
<th>Last Name</th>
<th>{{_i}}Last Name{{/i}}</th>
<th>Language</th>
<th>{{_i}}Language{{/i}}</th>
</tr>
</tr>
</thead>
</thead>
<tbody>
<tbody>
...
@@ -662,13 +662,13 @@
...
@@ -662,13 +662,13 @@
</div>
</div>
<h3>4. Condensed table</h3>
<h3>4. {{_i}}Condensed table{{/i}}</h3>
<divclass="row">
<divclass="row">
<divclass="span4">
<divclass="span4">
<p>Make your tables more compact by adding the <code>.table-condensed</code> class to cut table cell padding in half (from 10px to 5px).</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>Include the <ahref="http://jquery.com">jQuery</a><ahref="http://tablesorter.com/docs/">Tablesorter</a> plugin and automaically get clear styles for sorted columns.</p>
<p>{{_i}}Include the <ahref="http://jquery.com">jQuery</a><ahref="http://tablesorter.com/docs/">Tablesorter</a> plugin and automatically get clear styles for sorted columns.{{/i}}</p>