Language
日本語
English

Caution

JavaScript is disabled in your browser.
This site uses JavaScript for features such as search.
For the best experience, please enable JavaScript before browsing this site.

CSS Dictionary

  1. Home
  2. CSS Dictionary
  3. display

display

Changes how an element is displayed. Note that the default value varies depending on the HTML element.

Sample Code

div.test { display: inline;}
div.test1 { display: block;}
div.test2 { display: none;}

Available Values

ValueDescription
noneHides the element. Layout is calculated as if the element does not exist.
inlineTreats the element as an inline-level element.
inline-blockTreats the element as an inline-block element (replaced element).
blockTreats the element as a block-level element.
list-itemTreats the element as a list item. A list marker is also generated. Behaves like a li element.
tableBehaves like a table element.
※ Not supported in IE8 and earlier.
table-captionBehaves like a caption element.
※ Not supported in IE8 and earlier.
table-cellBehaves like a td element.
※ Not supported in IE8 and earlier.
table-rowBehaves like a tr element.
※ Not supported in IE8 and earlier.
table-columnBehaves like a col element.
※ Not supported in IE8 and earlier.
table-column-groupBehaves like a colgroup element.
※ Not supported in IE8 and earlier.
table-footer-groupBehaves like a tfoot element.
※ Not supported in IE8 and earlier.
table-header-groupBehaves like a thead element.
※ Not supported in IE8 and earlier.
table-row-groupBehaves like a tbody element.
※ Not supported in IE8 and earlier.

Browser Compatibility

Chrome Chrome
1+
Firefox Firefox
1+
Safari Safari
1+
Edge Edge
12+
Supported in all versions
IE IE
11
10
9
8
7
6
Opera Opera
7+
6 or earlier ×
iOS Safari iOS Safari
1+
Android Android Browser
4.4+
3 or earlier ×
Chrome Android Chrome Android
Latest
Same support as desktop version
Firefox Android Firefox Android
Latest
Same support as desktop version

※ Version data based on MDN .

Overview

Changes how an element is displayed. Note that the default value varies depending on the HTML element.

The display property is also covered in this article, which is aimed at beginners.

If you find any errors or copyright issues, please .