Notes: The table contains most common CSS properties/values. The browsers might ignore some of the properties!
Most off the properties have 'initial', 'unset' and 'inherit' values:
Property | Value | Description | Comments |
---|---|---|---|
all border properties | See Box Borders | The same as box border properties | |
border-collapse | collapse | separate | Determines whether a table's borders are separated or collapsed | Separate is the default |
border-spacing | [length] | [percentage] [length] | [percentage] {1, 2} | Specifies the distance between the borders of adjacent table cells (only for the separated borders model) | First length is the horizontal spacing, second is the vertical spacing |
caption-side | top | bottom | Positions the content of a table's <caption> on the specified side. | |
empty-cells | show | hide | Specifies how user agents should render borders and backgrounds around cells that have no visible content. | |
table-layout | auto | fixed | Defines the algorithm to be used to layout the table cells, rows, and columns | auto (default) - column widths are determined by the cells in all rows.
fixed - column widths is determined by the cells in the first row only. Table renders faster |
vertical-align | [length] | [percentage] | baseline | sub | super | top | text-top | middle | bottom | text-bottom | Specifies the vertical alignment of a table-cell box. | Negative values are allowed for [length] and [percentage]. |