By drupalhero |
Drupal8 W3CSS Theme - Table Classes

Setting the Table layout Different browsers use different methods to calculate how a particular table should be displayed. Two primary table-layout. Fixed method bases its layout on the width of the table and the width of columns in the first row. This method is generally faster than automatic.  Automatic uses the table column width along with the amount of content in the table data cell to calculate the table data cell width. This will generally render more slowly than the fixed method, but it also produces more accurate results for widths throughout the table. To set the table layout method:
1. Add the table layout property to a CSS rule for a table element. Type table-layout, followed by a colon (:) on table elements
2. Specify the layout method. auto; Type one of the following values to specify which method you want to use when displaying your table: > fixed will use the first row to calculate the overall width of table data cells in that column of the table. > auto will allow the browser to calculate the widths of table data cells based on their content

Class Defines
w3-table Container for an HTML table
w3-striped Striped table
w3-border Bordered table
w3-bordered Bordered lines
w3-centered Centered table
w3-hoverable Hoverable table
w3-table-all All properties set
  With w3-striped, w3-border, and w3-bordered
  With colored head
  With w3-responsible
  With w3-tiny
  With w3-small
  With w3-large
  With w3-xlarge
  With w3-xxlarge
  With w3-xxxlarge
  With color
  With w3-jumbo
w3-responsive Creates a responsive table