Basic Tables

Code Editor Example

Using the most basic table markup, here’s how .table-based tables look in Bootstrap.

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
4 Markol the otto @dribbble
Bordered table

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

# First Name Last Name Username
1 Mark Otto @mdo
2 Mark Otto @TwBootstrap
3 Jacob Thornton @fat
4 Larry the Bird @twitter
Table Head Dark

Similar to tables and dark tables, use the modifier classes .thead-dark to make s appear dark.

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
Table Head Light

Similar to tables and dark tables, use the modifier classes .thead-light to make s appear light

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
Striped Table

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

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
Hover Table

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

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
Contextual classes

Use contextual classes to color table rows or individual cells.

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
4 Mark Otto @mdo
5 Jacob Thornton @fat
6 Larry the Bird @twitter
7 Jacob Thornton @fat
8 Larry the Bird @twitter
9 Jacob Thornton @fat
10 Larry the Bird @twitter
Captions Table

A <caption> functions like a heading for a table. It helps users with screen readers to find a table and understand what it’s about and decide if they want to read it.

List of users
# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
Small table

Add .table-sm to make tables more compact by cutting cell padding in half.

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
2018 © Syntra.

Recent Activity

  • Mary Brown open a new company just now
  • Mary Brown send a new message 50 min ago
  • Holly Cobb Uploaded 6 new photos. 3 Week Ago
  • Mary Brown open a new company. 1 Month Ago

Events

  • Jamie Miller

    Contrary to popular belief, Lorem Ipsum is not simply random text. 2 Week Ago
  • Robert Jones

    Lorem Ipsum is simply dummy text of the printing and typesetting . 1 Month Ago
Account Setting
  • Auto updates
  • Show offline Contacts
  • Location Permission
General Setting
  • Show me Online
  • Status visible to all
  • Notifications