Table basic table samples

Basic example

For basic styling add the base class .table to any <table>.

# Table heading Table heading Table heading
1 Table cell Table cell Table cell
2 Table cell Table cell Table cell
3 Table cell Table cell Table cell

Striped rows

Use .table-striped to add zebra-striping to any table row within the <tbody>.

# Table heading Table heading Table heading
1 Table cell Table cell Table cell
2 Table cell Table cell Table cell
3 Table cell Table cell Table cell

Bordered table

Add .table-bordered for borders on all sides of the table and cells.

# Table heading Table heading Table heading
1 Table cell Table cell Table cell
2 Table cell Table cell Table cell
3 Table cell Table cell Table cell

Hover rows

Add .table-hover to enable a hover state on table rows within a <tbody>.

# Table heading Table heading Table heading
1 Table cell Table cell Table cell
2 Table cell Table cell Table cell
3 Table cell Table cell Table cell

Table with checkbox

An example of table with checkbox in every rows.

Table heading Table heading Table heading
Table cell Table cell Table cell
Table cell Table cell Table cell
Table cell Table cell Table cell

Table with actions

An example of table with actions in every rows.

# Table heading Table heading Table heading Actions
1 Table cell Table cell Table cell
2 Table cell Table cell Table cell
3 Table cell Table cell Table cell

Contextual classes row

Use contextual classes to color table rows.

# Class Name Table heading Table heading Table heading Table heading
1 active Table cell Table cell Table cell Table cell
2 success Table cell Table cell Table cell Table cell
3 info Table cell Table cell Table cell Table cell
4 warning Table cell Table cell Table cell Table cell
5 danger Table cell Table cell Table cell Table cell

Contextual classes column

Use contextual classes to color table individual cells.

# Table heading Table heading Table heading Table heading Table heading
1 active success info warning danger
2 active success info warning danger
3 active success info warning danger
4 active success info warning danger
5 active success info warning danger

Responsive tables

Create responsive tables by wrapping any .table in .table-responsive to make them scroll horizontally up to small devices (under 768px). When viewing on anything larger than 768px wide, you will not see any difference in these tables.

# Table heading Table heading Table heading Table heading Table heading Table heading
1 Table cell Table cell Table cell Table cell Table cell Table cell
2 Table cell Table cell Table cell Table cell Table cell Table cell
3 Table cell Table cell Table cell Table cell Table cell Table cell
2014 - © Blankon Admin. Created by Djava UI, Yogyakarta ID 0.01 GB(0%) of 15 GB used