Roots
Back

CSS Tables

Border Collapse

border-spacing: collapse / separate ;

collapse - Table borders are 'collapsed' together where possible.
separate - Borders appear as normal.

Border Spacing

border-spacing: hvalue / vvalue ;

hvalue - The space between cells horizontally, in pixels.
vvalue - The space between cells vertically, in pixels.

Caption Side

caption-side: top / bottom ;

top - Place a table caption at the top of a table.
bottom - Place a table caption at the bottom of a table.

Empty Cells

empty-cells: show / hide ;

show - Display the borders and background of cells with no content.
hide - Do not display the borders and background.

Table Layout

table-layout: auto / fixed ;

auto - Table will load as normal.
fixed - Display the table as it loads, so users do not have to wait as long to start viewing it, and your page appears to load faster.