Simple Table

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

IDNamePositionSalary
1Joan PowellAssociate Developer$450,870
2Gavin GibsonAccount manager$230,540
3Julian KerrSenior Javascript Developer$55,300
4Cedric KellyAccountant$234,100
5Samantha MayJunior Technical Author$43,198

Striped Rows

Use .table-stripedto add zebra-striping to any table row within the .tbody.

IDNamePositionSalary
1Joan PowellAssociate Developer$450,870
2Gavin GibsonAccount manager$230,540
3Julian KerrSenior Javascript Developer$55,300
4Cedric KellyAccountant$234,100
5Samantha MayJunior Technical Author$43,198

Bordered Table

Use .table-borderedto add zebra-striping to any table row within the .tbody.

IDNamePositionSalary
1Joan PowellAssociate Developer$450,870
2Gavin GibsonAccount manager$230,540
3Julian KerrSenior Javascript Developer$55,300
4Cedric KellyAccountant$234,100
5Samantha MayJunior Technical Author$43,198

Hoverable Rows Table

Use .table-hoverto add zebra-striping to any table row within the .tbody.

IDNamePositionSalary
1Joan PowellAssociate Developer$450,870
2Gavin GibsonAccount manager$230,540
3Julian KerrSenior Javascript Developer$55,300
4Cedric KellyAccountant$234,100
5Samantha MayJunior Technical Author$43,198

Borderless Table

Use .table-borderlessto add zebra-striping to any table row within the .tbody.

IDNamePositionSalary
1Joan PowellAssociate Developer$450,870
2Gavin GibsonAccount manager$230,540
3Julian KerrSenior Javascript Developer$55,300
4Cedric KellyAccountant$234,100

Small Table

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

IDNamePositionSalary
1Joan PowellAssociate Developer$450,870
2Gavin GibsonAccount manager$230,540
3Julian KerrSenior Javascript Developer$55,300
4Cedric KellyAccountant$234,100
5Samantha MayJunior Technical Author$43,198

Nested Table

Border styles, active styles, and table variants are not inherited by nested tables.

IDNamePositionSalary
1Joan PowellAssociate Developer$450,870
IDNamePositionSalary
1Joan PowellAssociate Developer$450,870
2Gavin GibsonAccount manager$230,540
3Julian KerrSenior Javascript Developer$55,300
4Cedric KellyAccountant$234,100
3Julian KerrSenior Javascript Developer$55,300
4Cedric KellyAccountant$234,100
5Samantha MayJunior Technical Author$43,198

Contextual Table

Use contextual classes to color tables, table rows or individual cells.

IDNamePositionSalary
1Joan PowellAssociate Developer$450,870
2Gavin GibsonAccount manager$230,540
3Gavin GibsonAccount manager$230,540
4Julian KerrSenior Javascript Developer$55,300
5Cedric KellyAccountant$234,100
6Cedric KellyAccountant$234,100
7Cedric KellyAccountant$234,100
8Cedric KellyAccountant$234,100
9Cedric KellyAccountant$234,100

Table head

Similar to tables and dark tables, use the modifier classes .table-primary or .table-dark to make <thead>

IDNamePositionSalary
1Joan PowellAssociate Developer$450,870
2Gavin GibsonAccount manager$230,540
3Julian KerrSenior Javascript Developer$55,300
4Cedric KellyAccountant$234,100

Table Dark

Use .table-darkto add zebra-striping to any table row within the .tbody.

IDNamePositionSalary
1Joan PowellAssociate Developer$450,870
2Gavin GibsonAccount manager$230,540
3Julian KerrSenior Javascript Developer$55,300
4Cedric KellyAccountant$234,100