Table Basic

Documentation and examples for opt-in styling of tables(given their prevalent use in JavaScript plugins) with Bootstrap. Read the Official Bootstrap Documentationfor a full list of instructions and other options.
Basic Example

Using the most basic table markup,here’s how .tablebased tables look in Bootstrap. All table styles are inherited in Bootstrap 4,meaning any nested tables will be styled in the same manner as the parent.

IDNameJob TitleDegreeSalary
1Adrian MoninoFront-End EngineerComputer Science$120,000
2Socrates ItumaySoftware EngineerComputer Engineering$150,000
3Reynante LabaresProduct ManagerBusiness Management$250,000
4Hamza MacasindilSoftware EngineerComputer Engineering$140,000
5Roven GaleonProject ManagerAccountancy$160,000
Table Head Options

Similar to tables and dark tables,use the modifier classes .thead-primaryor .thead-darkto make colored head.

IDNameJob TitleDegreeSalary
1Adrian MoninoFront-End EngineerComputer Science$120,000
2Socrates ItumaySoftware EngineerComputer Engineering$150,000
3Reynante LabaresProduct ManagerBusiness Management$250,000
Striped Rows

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

IDNameJob TitleDegreeSalary
1Adrian MoninoFront-End EngineerComputer Science$120,000
2Socrates ItumaySoftware EngineerComputer Engineering$150,000
3Reynante LabaresProduct ManagerBusiness Management$250,000
4Hamza MacasindilSoftware EngineerComputer Engineering$140,000
5Roven GaleonProject ManagerAccountancy$160,000
Bordered Table

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

IDNameJob TitleDegreeSalary
1Adrian MoninoFront-End EngineerComputer Science$120,000
2Socrates ItumaySoftware EngineerComputer Engineering$150,000
3Reynante LabaresProduct ManagerBusiness Management$250,000
4Hamza MacasindilSoftware EngineerComputer Engineering$140,000
5Roven GaleonProject ManagerAccountancy$160,000
Hoverable Rows

Add .table-hoverto enable a hover state on table rows within a tbody.

IDNameJob TitleDegreeSalary
1Adrian MoninoFront-End EngineerComputer Science$120,000
2Socrates ItumaySoftware EngineerComputer Engineering$150,000
3Reynante LabaresProduct ManagerBusiness Management$250,000
4Hamza MacasindilSoftware EngineerComputer Engineering$140,000
5Roven GaleonProject ManagerAccountancy$160,000
Compact Table

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

IDNameJob TitleDegreeSalary
1Adrian MoninoFront-End EngineerComputer Science$120,000
2Socrates ItumaySoftware EngineerComputer Engineering$150,000
3Reynante LabaresProduct ManagerBusiness Management$250,000
4Hamza MacasindilSoftware EngineerComputer Engineering$140,000
5Roven GaleonProject ManagerAccountancy$160,000
Colored Variations

Use contextual classes to color entire table.

IDNameJob TitleDegreeSalary
1Adrian MoninoFront-End EngineerComputer Science$120,000
2Socrates ItumaySoftware EngineerComputer Engineering$150,000
3Reynante LabaresProduct ManagerBusiness Management$250,000
4Hamza MacasindilSoftware EngineerComputer Engineering$140,000
5Roven GaleonProject ManagerAccountancy$160,000
IDNameJob TitleDegreeSalary
1Adrian MoninoFront-End EngineerComputer Science$120,000
2Socrates ItumaySoftware EngineerComputer Engineering$150,000
3Reynante LabaresProduct ManagerBusiness Management$250,000
4Hamza MacasindilSoftware EngineerComputer Engineering$140,000
5Roven GaleonProject ManagerAccountancy$160,000
Responsive Table

Responsive tables allow tables to be scrolled horizontally with ease. Make any table responsive across all viewports by wrapping a .tablewith .table-responsive.

IDNameJob TitleDegreeSalary
1Adrian MoninoFront-End EngineerComputer Science$120,000
2Socrates ItumaySoftware EngineerComputer Engineering$150,000
3Reynante LabaresProduct ManagerBusiness Management$250,000
4Hamza MacasindilSoftware EngineerComputer Engineering$140,000
5Roven GaleonProject ManagerAccountancy$160,000