Tables
Basic table
For the most basic of table styling, use the .table
class.
# | First Name | Last Name | Username |
---|---|---|---|
1 | John | Foobar | @fbar |
2 | Joe | Thornton | @fat |
3 | James | the Bird |
Bordered table
To make a borderd table add the .table-bordered
class.
# | First Name | Last Name | Username |
---|---|---|---|
1 | John | Foobar | @fbar |
2 | Joe | Thornton | @fat |
3 | James | the Bird |
Raised table
Make a table raised by adding the .raised
class.
# | First Name | Last Name | Username |
---|---|---|---|
1 | John | Foobar | @fbar |
2 | Joe | Thornton | @fat |
3 | James | the Bird |
Hover table
Adding the .table-hover
class highlights the rows on hover.
# | First Name | Last Name | Username |
---|---|---|---|
1 | John | Foobar | @fbar |
2 | Joe | Thornton | @fat |
3 | James | the Bird |
Responsive table
A responsive table will scroll horizontally at smaller screen sizes. This is handy for tables with lots of text.
Simply wrap the table in a div
with the .table-responsive
class.
# | First Name | Last Name | Username |
---|---|---|---|
1 | John | Foobar | @fbar |
2 | Joe | Thornton | @fat |
3 | James | the Bird |
Table Highlights
You can highlight both rows and cells using Hubble's contextual classes. You can add the following classes
.info
, .success
, .warning
, .danger
& .brand
to rows, cells, table footer and table header.
# | First Name | Last Name | Username |
---|---|---|---|
1 | John | Foobar | @fbar |
2 | Joe | Thornton | @fat |
3 | James | the Bird |