Tables - Basic

One stop solution for perfect admin dashboard!

Basic Example
Optional table caption.
#First NameLast NameUsername
1MarkOtto@mdo
2JacobThornton@fat
3Larrythe Bird@twitter
<table class="table">    <caption>Optional table caption.</caption>    <thead>        <tr>            <th>#</th>            <th>First Name</th>        </tr>    </thead>    <tbody>        <tr>            <th scope="row">1</th>            <td>Mark</td>        </tr>        ...    </tbody></table>                                                    
Striped Rows
Optional table caption.
#First NameLast NameUsername
1MarkOtto@mdo
2JacobThornton@fat
3Larrythe Bird@twitter
<table class="table table-striped">    <caption>Optional table caption.</caption>    <thead>        <tr>            <th>#</th>            <th>First Name</th>        </tr>    </thead>    <tbody>        <tr>            <th scope="row">1</th>            <td>Mark</td>        </tr>        ...    </tbody></table>                                                    
Bordered Table
Optional table caption.
#First NameLast NameUsername
1MarkOtto@mdo
2JacobThornton@fat
3Larrythe Bird@twitter
<table class="table table-bordered">    <caption>Optional table caption.</caption>    <thead>        <tr>            <th>#</th>            <th>First Name</th>        </tr>    </thead>    <tbody>        <tr>            <th scope="row">1</th>            <td>Mark</td>        </tr>        ...    </tbody></table>                                                    
Striped + Bordered Table
Optional table caption.
#First NameLast NameUsername
1MarkOtto@mdo
2JacobThornton@fat
3Larrythe Bird@twitter
<table class="table table-striped table-bordered">    <caption>Optional table caption.</caption>    <thead>        <tr>            <th>#</th>            <th>First Name</th>        </tr>    </thead>    <tbody>        <tr>            <th scope="row">1</th>            <td>Mark</td>        </tr>        ...    </tbody></table>                                                    
Hover Rows
Optional table caption.
#First NameLast NameUsername
1MarkOtto@mdo
2JacobThornton@fat
3Larrythe Bird@twitter
<table class="table table-hover table-bordered">    <caption>Optional table caption.</caption>    <thead>        <tr>            <th>#</th>            <th>First Name</th>        </tr>    </thead>    <tbody>        <tr>            <th scope="row">1</th>            <td>Mark</td>        </tr>        ...    </tbody></table>                                                    
Contextual Classes

Use contextual classes to color table rows or individual cells.

ClassDescription
.activeApplies the hover color to a particular row or cell
.successIndicates a successful or positive action
.infoIndicates a neutral informative change or action
.warningIndicates a warning that might need attention
.dangerIndicates a dangerous or potentially negative action
#Column headingColumn headingColumn heading
1Column contentColumn contentColumn content
2Column contentColumn contentColumn content
3Column contentColumn contentColumn content
4Column contentColumn contentColumn content
5Column contentColumn contentColumn content
6Column contentColumn contentColumn content
7Column contentColumn contentColumn content
8Column contentColumn contentColumn content
9Column contentColumn contentColumn content
<table class="table table-bordered">    <thead>        <tr>            <th>#</th>            <th>Column heading</th>        </tr>    </thead>    <tbody>        <tr class="active">            <th scope="row">1</th>            <td>Column content</td>        </tr>        <tr>            <th scope="row">2</th>            <td>Column content</td>        </tr>        <tr class="success">            <th scope="row">3</th>            <td>Column content</td>        </tr>        <tr>            <th scope="row">4</th>            <td>Column content</td>        </tr>        <tr class="info">            <th scope="row">5</th>            <td>Column content</td>        </tr>        <tr>            <th scope="row">6</th>            <td>Column content</td>        </tr>        <tr class="warning">            <th scope="row">7</th>            <td>Column content</td>        </tr>        <tr>            <th scope="row">8</th>            <td>Column content</td>        </tr>        <tr class="danger">            <th scope="row">9</th>            <td>Column content</td>        </tr>    </tbody></table>