Display types

The display property determines an element's box type and its layout behavior. block takes the full width on its own line, inline sits within the text with no width or height, inline-block combines the two, none removes the element, flex and grid enable layout modes.

Example

nav a { display: inline-block; }
.cache { display: none; }

Related concepts

The whole glossary