CSS Display
Introduction to CSS Display
The `display` property specifies the display behavior of an element, such as block, inline, or flex.
Common Display Values
- block: Element takes up the full width available.
- inline: Element takes up only as much width as needed.
- flex: Creates a flex container for responsive layouts.
Example
div {
display: flex;
justify-content: center;
}
Browser Support
Supported by all modern browsers.