docs.rodeo

MDN Web Docs mirror

CSS table

{{CSSRef}} 

The CSS table module helps you define how to lay out table data.

This CSS module defines styles applicable to the HTML {{htmlelement("table")}}  element, which is used to render tabular data. By default, tables are rendered as a two-dimensional grid with cells lined up in a series of consecutive rows and columns. This layout is generated from the table structure and sized according to the content of the cells. This module also enables defining the position of the table’s {{htmlelement("caption")}} , if present.

The properties introduced in this module aren’t limited to the <table> elements; they can be applied to any element with a table-related CSS {{cssxref("display")}}  value.

Reference

Properties

Guides

Specifications

{{Specifications}} 

[!NOTE] The CSS 2.2 specification defines stable standards for web styling, including detailed specifications for table formatting. The CSS Table Module Level 3 specification seeks to expand these capabilities with advanced features for table layout and rendering. However, the table module specification is still being developed and is not yet ready for implementation.

See also

In this article

View on MDN