For elements whose children are aligned horizontally, a packing value of
start indicates left alignment with extra space towards the right side, a value of
end indicates right alignment with extra space to the left, a value of
center indicates center alignment with extra space split evenly on either side, and a value of
justifyindicates that the outer elements should be aligned on the left and right, with space added evenly between the elements.
- The alignment of child elements.
center Child elements are aligned to the center of the element. end Child elements are aligned to the end of the element. justify Child elements are justified with both the start and end of the element. start Child elements are aligned to the start of the element.
<display-type> = inline | block | list-item | inline-block | table | inline-table | table-row-group | table-header-group | table-footer-group | table-row | table-column-group | table-column | table-cell | table-caption | none
- These three values are equivalent. The element is an inline-level element.
- The element is formatted as a list item. If the element has the value ‘
inside’ for its ‘
list-style-position’, that ‘
inside’ is treated as if it were ‘
- These two values are equivalent.
- This creates a principal block-level box that is the template, with around it an anonymous ‘
table-row’ box and around it a box of the indicated type. Around it may be more anonymous boxes according to the rules for Anonymous table objects [CSS21].
- This creates a principal block-level box that is the template and around it a ‘
table-row’ box. Around it may be zero or more anonymous boxes according to the rules for Anonymous table objects [CSS21].
- The template is ignored and the element is treated as an element of the indicated type.
- The element is a table cell with a template.
- The element is a table caption with a template.
- The template is ignored and the element is treated as for ‘