Name
display
Synopsis
Defines the type of box the element generates during layout.
Values:
inline | block | list-item | run-in | 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 | inherit
Initial value:
inline
Applies to:
All elements.
Inherited:
No.
Computed value:
As specified (varies for floated, positioned, and root elements).
Get Web Design in a Nutshell, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.