display

whether element should behave as a block, inline element, or table component

Example

1

Description

whether element should behave as a block, inline element, or table component

Values

Value Description
Values
blockgenerate a block box
inlinegenerate an inline box
inline-blockgenerate a block box, following inline layout
inline-tablegenerate an inline box that behaves like a <table>
list-itemgenerate a block box, and inline box for the list marker
noneelement will not generate a box
run-ingenerate a block or inline box depending on context
tablebehave like a <table>
table-captionbehave like a <caption>
table-cellbehave like a table cell
table-columnbehave like a table column
table-column-groupbehave like a <colgroup>
table-footer-groupbehave like a table footer row group
table-header-groupbehave like a table header row group
table-rowbehave like a table row
table-row-groupbehave like a table row group
-webkit-box
-webkit-inline-box