Basic tables
Just add the base class .table
to any table
and extend with custom styles or our various modifier classes.
All table styles are inherited in Bootstrap 4, meaning any nested tables will be styled in the same manner as the parent.
# | First Name | Last Name | Username |
---|---|---|---|
1 | Mark | Mackerel | @mmackerel |
2 | Jacob | Jellyfish | @jjelly |
3 | Marty | Monkfish | @martythemonk |
# | First Name | Last Name | Username |
---|---|---|---|
1 | Mark | Mackerel | @mmackerel |
2 | Jacob | Jellyfish | @jjelly |
3 | Marty | Monkfish | @martythemonk |
Tables with striped rows
Use .table-striped
to add zebra-striping to any table row within the tbody
.
# | First Name | Last Name | Username |
---|---|---|---|
1 | Mark | Mackerel | @mmackerel |
2 | Jacob | Jellyfish | @jjelly |
3 | Marty | Monkfish | @martythemonk |
# | First Name | Last Name | Username |
---|---|---|---|
1 | Mark | Mackerel | @mmackerel |
2 | Jacob | Jellyfish | @jjelly |
3 | Marty | Monkfish | @martythemonk |
Bordered Table
Add .table-bordered
for borders on all sides of the table
and cells.
# | First Name | Last Name | Username |
---|---|---|---|
1 | Mark | Mackerel | @mmackerel |
2 | Jacob | Jellyfish | @jjelly |
3 | Marty | Monkfish | @martythemonk |
# | First Name | Last Name | Username |
---|---|---|---|
1 | Mark | Mackerel | @mmackerel |
2 | Jacob | Jellyfish | @jjelly |
3 | Marty | Monkfish | @martythemonk |
Tables with hoverable rows
Add .table-hover
to enable a hover state on table rows within a tbody
.
# | First Name | Last Name | Username |
---|---|---|---|
1 | Mark | Mackerel | @mmackerel |
2 | Jacob | Jellyfish | @jjelly |
3 | Marty | Monkfish | @martythemonk |
# | First Name | Last Name | Username |
---|---|---|---|
1 | Mark | Mackerel | @mmackerel |
2 | Jacob | Jellyfish | @jjelly |
3 | Marty | Monkfish | @martythemonk |