[vc_row][vc_column width=”1/1″][cs_divider_icon align=”left” text=”Table Basic” color=”#bbbbbb”][/cs_divider_icon][vc_column_text]For basic styling—light padding and only horizontal dividers—add the base class .cs-table to any <table>. It may seem super redundant, but given the widespread use of tables for other plugins like calendars and date pickers, we’ve opted to isolate our custom table styles.[/vc_column_text][cs_table]
| # | First Name | Last Name | Username |
|---|---|---|---|
| 1 | Mark | Otto | @mdo |
| 2 | Jacob | Thornton | @fat |
| 3 | Larry | the Bird |
[/cs_table][/vc_column][/vc_row][vc_row][vc_column width=”1/1″][cs_divider_icon align=”left” text=”Table Striped rows” color=”#bbbbbb”][/cs_divider_icon][vc_column_text]Use .cs-table-striped to add zebra-striping to any table row within the <tbody>.[/vc_column_text][cs_table striped=”1″]
| # | First Name | Last Name | Username |
|---|---|---|---|
| 1 | Mark | Otto | @mdo |
| 2 | Jacob | Thornton | @fat |
| 3 | Larry | the Bird |
[/cs_table][/vc_column][/vc_row][vc_row][vc_column width=”1/1″][cs_divider_icon align=”left” text=”Table Bordered” color=”#bbbbbb”][/cs_divider_icon][vc_column_text]Add .cs-table-bordered for borders on all sides of the table and cells.[/vc_column_text][cs_table bordered=”1″]
| # | First Name | Last Name | Username |
|---|---|---|---|
| 1 | Mark | Otto | @mdo |
| 2 | Jacob | Thornton | @fat |
| 3 | Larry | the Bird |
[/cs_table][/vc_column][/vc_row][vc_row][vc_column width=”1/1″][cs_divider_icon align=”left” text=”Table Hover” color=”#bbbbbb”][/cs_divider_icon][vc_column_text]Add .cs-table-hover to enable a hover state on table rows within a <tbody>.[/vc_column_text][cs_table hover=”1″]
| # | First Name | Last Name | Username |
|---|---|---|---|
| 1 | Mark | Otto | @mdo |
| 2 | Jacob | Thornton | @fat |
| 3 | Larry | the Bird |
[/cs_table][/vc_column][/vc_row][vc_row][vc_column width=”1/1″][cs_divider_icon align=”left” text=”Table Condensed” color=”#bbbbbb”][/cs_divider_icon][vc_column_text]Add .cs-table-condensed to make tables more compact by cutting cell padding in half.[/vc_column_text][cs_table condensed=”1″]
| # | First Name | Last Name | Username |
|---|---|---|---|
| 1 | Mark | Otto | @mdo |
| 2 | Jacob | Thornton | @fat |
| 3 | Larry | the Bird |
[/cs_table][/vc_column][/vc_row][vc_row][vc_column width=”1/1″][cs_divider_icon align=”left” text=”Table Responsive” color=”#bbbbbb”][/cs_divider_icon][vc_column_text]Create responsive tables by wrapping any .cs-table in .cs-table-responsive to make them scroll horizontally on small devices (under 768px). When viewing on anything larger than 768px wide, you will not see any difference in these tables.[/vc_column_text][cs_table responsive=”1″]
| # | First Name | Last Name | Username |
|---|---|---|---|
| 1 | Mark | Otto | @mdo |
| 2 | Jacob | Thornton | @fat |
| 3 | Larry | the Bird |
[/cs_table][/vc_column][/vc_row]