Bootstrap Tables
Bootstrap Basic Table
Influenza A virus subtype H5N1 basic Bootstrap tabular array has a low-cal padding in addition to exclusively horizontal dividers.
The
.table
degree adds basic styling to a table:
Example
Firstname | Lastname | Email |
John | Doe | john@example.com |
Mary | Moe | mary@example.com |
July | Dooley | july@example.com |
Striped Rows
The
.table-striped
degree adds zebra-stripes to a table:
Example
Firstname | Lastname | Email |
John | Doe | john@example.com |
Mary | Moe | mary@example.com |
July | Dooley | july@example.com |
Bordered Table
The
.table-bordered
degree adds borders on all sides of the tabular array in addition to cells:
Example
Firstname | Lastname | Email |
John | Doe | john@example.com |
Mary | Moe | mary@example.com |
July | Dooley | july@example.com |
Hover Rows
The
.table-hover
degree adds a hover upshot (grey background color) on tabular array rows:
Example
Firstname | Lastname | Email |
John | Doe | john@example.com |
Mary | Moe | mary@example.com |
July | Dooley | july@example.com |
Condensed Table
The
.table-condensed
degree makes a tabular array to a greater extent than compact past times cutting prison theatre cellphone padding inwards half:
Example
Firstname | Lastname | Email |
John | Doe | john@example.com |
Mary | Moe | mary@example.com |
July | Dooley | july@example.com |
Contextual Classes
Contextual classes tin ship away survive used to color tabular array rows (
<tr>
) or tabular array cells (
<td>
):
Example
Firstname | Lastname | Email |
Default | Defaultson | def@somemail.com |
Success | Doe | john@example.com |
Danger | Moe | mary@example.com |
Info | Dooley | july@example.com |
Warning | Refs | bo@example.com |
Active | Activeson | act@example.com |
The contextual classes that tin ship away survive used are:
Class | Description |
.active | Applies the hover color to the tabular array row or tabular array cell |
.success | Indicates a successful or positive action |
.info | Indicates a neutral informative alter or action |
.warning | Indicates a alert that mightiness involve attention |
.danger | Indicates a unsafe or potentially negative action |
Responsive Tables
The
.table-responsive
degree creates a responsive table. The tabular array volition thus scroll horizontally on modest devices (under 768px). When viewing on anything larger than 768px wide, at that topographic point is no difference:
Example
<div class="table-responsive">
<table class="table">
...
</table>
</div>
Comments
Post a Comment