CSS Table
Use table utilities to easily add styles and effects to tables.
Example
ID | Animal name | Animal type |
---|---|---|
1 | Kitty | cat |
2 | Doug | dog |
3 | Travis | tiger |
Styles and effects
Border style options include:
table-border
: outer border around tabletable-bordered
: bordered table and cellstable-border-row
: top border on each rowtable-borderless
: no borders
By default, table rows are styled with alternating stripes. Use table-unstriped
to remove this style.
Use table-hover
to add a hover effect to table rows.
For wider tables, in order to enable horizontal scrolling on mobile devices, tables must be wrapped in a table-responsive
div.
Get in touch
Do you have an idea, or want to help us improve this page? Reach out to us via email.
DTMB-DG-Support@michigan.govNeed help? Visit our Support page to learn how to get assistance, troubleshoot issues, and connect with the team.