CSS
CSS DisplayCSS Display
CSS display changes how elements flow in the document layout.
Read Time
5 min readDifficulty
BeginnerLast Updated
Jun 15, 2026Version
v1.0.0Introduction
The CSS `display` property dictates whether an element acts as a block, inline text, or a flex container. Every HTML element has a default display value. Developers change this property to build complex page structures.
Example
Example
Key Points
- Block elements take up the full width of the page.
- Inline elements only take up as much space as their content.
- The `none` value hides the element completely from the page.
- Flex and grid values enable advanced layout systems.