CSS display Property Explained
What the CSS display property does, with an example.
Published November 3, 2026
The CSS display property controls how an element is displayed in the layout — as a block, inline element, flex/grid container, or not at all.
Key points
- Check browser compatibility on a resource like caniuse.com if targeting older browsers
Example
display: flex;