{{_i}}Name{{/i}} |
{{_i}}Class{{/i}} |
@@ -524,203 +524,215 @@
1. {{_i}}Default table styles{{/i}}
{{_i}}Tables are automatically styled with only a few borders to ensure readability and maintain structure. With 2.0, the .table
class is required.{{/i}}
+
+
+
+
+ # |
+ {{_i}}First Name{{/i}} |
+ {{_i}}Last Name{{/i}} |
+ {{_i}}Username{{/i}} |
+
+
+
+
+ 1 |
+ Mark |
+ Otto |
+ @mdo |
+
+
+ 2 |
+ Jacob |
+ Thornton |
+ @fat |
+
+
+ 3 |
+ Larry |
+ the Bird |
+ @twitter |
+
+
+
+
{{! /example }}
<table class="table">
…
-</table>
-
-
-
-
- # |
- {{_i}}First Name{{/i}} |
- {{_i}}Last Name{{/i}} |
- {{_i}}Username{{/i}} |
-
-
-
-
- 1 |
- Mark |
- Otto |
- @mdo |
-
-
- 2 |
- Jacob |
- Thornton |
- @fat |
-
-
- 3 |
- Larry |
- the Bird |
- @twitter |
-
-
-
-
+</table>
+
2. {{_i}}Striped table{{/i}}
{{_i}}Get a little fancy with your tables by adding zebra-striping—just add the .table-striped
class.{{/i}}
{{_i}}Note: Striped tables use the :nth-child
CSS selector and is not available in IE7-IE8.{{/i}}
+
+
+
+
+ # |
+ {{_i}}First Name{{/i}} |
+ {{_i}}Last Name{{/i}} |
+ {{_i}}Username{{/i}} |
+
+
+
+
+ 1 |
+ Mark |
+ Otto |
+ @mdo |
+
+
+ 2 |
+ Jacob |
+ Thornton |
+ @fat |
+
+
+ 3 |
+ Larry |
+ the Bird |
+ @twitter |
+
+
+
+
{{! /example }}
<table class="table table-striped">
…
-</table>
-
-
-
-
- # |
- {{_i}}First Name{{/i}} |
- {{_i}}Last Name{{/i}} |
- {{_i}}Username{{/i}} |
-
-
-
-
- 1 |
- Mark |
- Otto |
- @mdo |
-
-
- 2 |
- Jacob |
- Thornton |
- @fat |
-
-
- 3 |
- Larry |
- the Bird |
- @twitter |
-
-
-
+</table>
+
3. {{_i}}Bordered table{{/i}}
{{_i}}Add borders around the entire table and rounded corners for aesthetic purposes.{{/i}}
+
+
+
+
+ # |
+ {{_i}}First Name{{/i}} |
+ {{_i}}Last Name{{/i}} |
+ {{_i}}Username{{/i}} |
+
+
+
+
+ 1 |
+ Mark |
+ Otto |
+ @mdo |
+
+
+ Mark |
+ Otto |
+ @TwBootstrap |
+
+
+ 2 |
+ Jacob |
+ Thornton |
+ @fat |
+
+
+ 3 |
+ Larry the Bird |
+ @twitter |
+
+
+
+
{{! /example }}
<table class="table table-bordered">
…
-</table>
-
-
-
-
- # |
- {{_i}}First Name{{/i}} |
- {{_i}}Last Name{{/i}} |
- {{_i}}Username{{/i}} |
-
-
-
-
- 1 |
- Mark |
- Otto |
- @mdo |
-
-
- Mark |
- Otto |
- @TwBootstrap |
-
-
- 2 |
- Jacob |
- Thornton |
- @fat |
-
-
- 3 |
- Larry the Bird |
- @twitter |
-
-
-
+</table>
+
4. {{_i}}Condensed table{{/i}}
{{_i}}Make your tables more compact by adding the .table-condensed
class to cut table cell padding in half (from 8px to 4px).{{/i}}
+
+
+
+
+ # |
+ {{_i}}First Name{{/i}} |
+ {{_i}}Last Name{{/i}} |
+ {{_i}}Username{{/i}} |
+
+
+
+
+ 1 |
+ Mark |
+ Otto |
+ @mdo |
+
+
+ 2 |
+ Jacob |
+ Thornton |
+ @fat |
+
+
+ 3 |
+ Larry the Bird |
+ @twitter |
+
+
+
+
{{! /example }}
<table class="table table-condensed">
…
-</table>
-
-
-
- # |
- {{_i}}First Name{{/i}} |
- {{_i}}Last Name{{/i}} |
- {{_i}}Username{{/i}} |
-
-
-
-
- 1 |
- Mark |
- Otto |
- @mdo |
-
-
- 2 |
- Jacob |
- Thornton |
- @fat |
-
-
- 3 |
- Larry the Bird |
- @twitter |
-
-
-
+</table>
+
5. {{_i}}Combine them all!{{/i}}
{{_i}}Feel free to combine any of the table classes to achieve different looks by utilizing any of the available classes.{{/i}}
+
+
+
+
+ |
+ {{_i}}Full name{{/i}} |
+ |
+
+
+ # |
+ {{_i}}First Name{{/i}} |
+ {{_i}}Last Name{{/i}} |
+ {{_i}}Username{{/i}} |
+
+
+
+
+
+ 1 |
+ Mark |
+ Otto |
+ @mdo |
+
+
+ 2 |
+ Jacob |
+ Thornton |
+ @fat |
+
+
+ 3 |
+ Larry the Bird |
+ @twitter |
+
+
+
+
{{! /example }}
<table class="table table-striped table-bordered table-condensed">
...
-</table>
-
-
-
- |
- {{_i}}Full name{{/i}} |
- |
-
-
- # |
- {{_i}}First Name{{/i}} |
- {{_i}}Last Name{{/i}} |
- {{_i}}Username{{/i}} |
-
-
-
-
-
- 1 |
- Mark |
- Otto |
- @mdo |
-
-
- 2 |
- Jacob |
- Thornton |
- @fat |
-
-
- 3 |
- Larry the Bird |
- @twitter |
-
-
-
+</table>
+
+
@@ -789,7 +801,7 @@
{{_i}}Example forms using just form controls, no extra markup{{/i}}
{{_i}}Basic form{{/i}}
{{_i}}Smart and lightweight defaults without extra markup.{{/i}}
-
+ {{! /example }}
<form class="well">
<label>{{_i}}Label name{{/i}}</label>
@@ -812,10 +824,10 @@
{{_i}}Search form{{/i}}
{{_i}}Add .form-search
to the form and .search-query
to the input
.{{/i}}
-
+ {{! /example }}
<form class="well form-search">
<input type="text" class="input-medium search-query">
@@ -825,14 +837,14 @@
{{_i}}Inline form{{/i}}
{{_i}}Add .form-inline
to finesse the vertical alignment and spacing of form controls.{{/i}}
-
+ {{! /example }}
<form class="well form-inline">
<input type="text" class="input-small" placeholder="{{_i}}Email{{/i}}">