display

The display property specifies how/if an element is displayed on the canvas.

CSS1

display: inline | block | list-item | none

CSS2

display: 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: inline
Applies To: all elements
Inherited: no
Percentages: NA
Media: all

Note: Doctype is required for Internet Explorer 8+ on CSS2

Values

Δ

display: value;
 
Value: Description:
block Generates a block box
inherit Takes the same computed value as the property for the element's parent
inline Generates one or more inline boxes
inline-block Generates a block box which is flowed as a single inline box
inline-table Behaves like an inline table element
list-item Generate a principal block box and a list-item inline box
none Generate no box
run-in Generates either block or inline boxes depending on context
table Behaves like a table element
table-caption Behaves like a caption element
table-cell Behaves like a td element
table-column Behaves like a col element
table-column-group Behaves like a colgroup element
table-footer-group Behaves like a tfoot element
table-header-group Behaves like a thead element
table-row Behaves like a tr element
table-row-group Behaves like a tbody element

DOM

Δ

[window.]document.getElementById("element-id").style.display = "display";

Example | Values | block

Δ

Example | Values | inline

Δ

Example | Values | inline-block

Δ

Example | Values | inline-table

Δ

Example | Values | list-item

Δ

Example | Values | none

Δ

Example | Values | run-in

Δ

Example | Values | table

Δ

Example | Values | table-caption

Δ

Example | Values | table-cell

Δ

Example | Values | table-column

Δ

Example | Values | table-column-group

Δ

Example | Values | table-header-group

Δ

Example | Values | table-row

Δ

Example | Values | table-row-group

Δ

Example | DOM | 1

Δ

Example | DOM | 2

Δ

Example | DOM | 3

Δ

References

Δ