files/en-us/web/css/reference/values/display-internal/index.md
Some layout models such as table and ruby have a complex internal structure, with several different roles that their children and descendants can fill. This page defines those "internal" display values, which only have meaning within that particular layout mode.
Valid <display-internal> values:
table-row-group
table-header-group
table-footer-group
table-row
table-cell
table-column-group
table-column
table-caption
ruby-base
ruby-text
ruby-base-container
ruby-text-container
{{csssyntax}}
The following example demonstrates laying out a form using CSS table layout.
<main>
<div>
<label for="name">Name</label>
<input type="text" id="name" name="name" />
</div>
<div>
<label for="age">Age</label>
<input type="text" id="age" name="age" />
</div>
</main>
main {
display: table;
}
div {
display: table-row;
}
label,
input {
display: table-cell;
margin: 5px;
}
{{EmbedLiveSample('CSS_tables_example', '100%', 100)}}
{{Specifications}}
{{Compat}}