Skip to main content

Module table

Module table 

Source
Expand description

CSS properties for table layout and styling.

This module contains properties specific to CSS table formatting:

  • table-layout: Controls the algorithm used to layout table cells, rows, and columns
  • border-collapse: Specifies whether cell borders are collapsed into a single border or separated
  • border-spacing: Sets the distance between borders of adjacent cells (separate borders only)
  • caption-side: Specifies the placement of a table caption
  • empty-cells: Specifies whether or not to display borders on empty cells in a table

Structs§

LayoutBorderSpacing
Sets the distance between the borders of adjacent cells.

Enums§

LayoutBorderSpacingParseError
Parse errors for border-spacing property
LayoutTableLayout
Controls the algorithm used to lay out table cells, rows, and columns.
LayoutTableLayoutParseError
Parse errors for table-layout property
StyleBorderCollapse
Specifies whether cell borders are collapsed into a single border or separated.
StyleBorderCollapseParseError
Parse errors for border-collapse property
StyleCaptionSide
Specifies the placement of a table caption.
StyleCaptionSideParseError
Parse errors for caption-side property
StyleEmptyCells
Specifies whether or not to display borders and background on empty cells.
StyleEmptyCellsParseError
Parse errors for empty-cells property

Functions§

parse_border_collapse
Parse a border-collapse value from a string
parse_border_spacing
Parse a border-spacing value from a string Accepts: “5px” or “5px 10px”
parse_caption_side
Parse a caption-side value from a string
parse_empty_cells
Parse an empty-cells value from a string
parse_table_layout
Parse a table-layout value from a string