Stylament 0.28.3

Tabular Content

The elements here are used to create and handle tabular data (data with more than one dimension).

Related

Spec [external]

MDN [external]

caption

scss
caption {
  margin-inline: auto;
}

Table caption.

Related

Spec [external]

MDN [external]

col

scss
col {
  
}

Table column.

Related

Spec [external]

MDN [external]

colgroup

scss
colgroup {
  
}

Table column group.

Related

Spec [external]

MDN [external]

table

scss
table {
  ---border-width: var(---table-border-width, 0rem);
  border-collapse: collapse;
  padding: 0;
  border-spacing: 0;
  // Compensate border to stay in baseline grid.
  margin-block-end: calc(-1 * var(---border-width));
}

The table itself.

Related

Spec [external]

MDN [external]

tbody

scss
tbody {
  
}

Table body.

Related

Spec [external]

MDN [external]

td/th

scss
:is(td, th) {
  border: var(---border-width) var(---table-border-color)
    var(---table-border-style);
  padding: calc(0.5 * (1rlh - var(---border-width)));
}

Table cell, normal and header.

td

scss
td {
  
}

Table cell.

Related

Spec [external]

MDN [external]

tfoot

scss
tfoot {
  
}

Table foot.

Related

Spec [external]

MDN [external]

th

scss
th {
  
}

Table header cell.

Related

Spec [external]

MDN [external]

thead

scss
thead {
  
}

Table head.

Related

Spec [external]

MDN [external]

tr

scss
tr {
  
}

Table row.

Related

Spec [external]

MDN [external]