Name
display
Synopsis
This is used to define the kind of display
box an element generates during layout. Gratuitous use of
display with a document type such as HTML can be
dangerous, as it upsets the display hierarchy already defined in
HTML. In the case of XML, which has no such built-in hierarchy,
display is indispensable.
Values:
none | inline |
block | inline-block |
list-item | run-in |
table | inline-table |
table-row-group |
table-header-group |
table-footer-group | table-row
| table-column-group |
table-column | table-cell |
table-caption | inherit
Initial value:
inline
Applies to:
all elements
Inherited:
no
Computed value:
varies for floated, positioned, and root elements (see CSS2.1, section 9.7); otherwise, as specified
Note:
the values compact and marker
appeared in CSS2 but were dropped from CSS2.1 due to a lack of
widespread support