Overview
Use display utilities to control how elements are rendered. These utilities set the CSSdisplay property and are fundamental to building layouts in Elementor v4.
Display Utilities
Display Properties
.block | Block | display: block; | Full-width block element |
.inline-block | Inline-block | display: inline-block; | Inline with block properties |
.flex | Flex | display: flex; | Flexbox container |
.inline-flex | Inline-flex | display: inline-flex; | Inline flexbox container |
.hidden | Hidden | display: none; | Hide element |
Block
Use.block to make an element a block-level element. Block elements take up the full width of their container and start on a new line.
Common Use Cases
- Creating full-width containers
- Stacking elements vertically
- Form elements that need full width
Inline Block
Use.inline-block to make an element inline but with block-level properties. Elements can sit side-by-side but still respect width and height.
Common Use Cases
- Buttons in navigation
- Icon and text combinations
- Elements that need to flow inline but respect dimensions
Flex
Use.flex to create a flexbox container. This is the foundation for most modern layouts.
Common Use Cases
- Navigation bars
- Card grids
- Centered content
- Responsive layouts
Inline Flex
Use.inline-flex to create an inline flexbox container. Useful when you want flexbox behavior but need the container to flow inline with other elements.
Common Use Cases
- Badges and tags
- Icon-text combinations in paragraphs
- Inline form elements
Hidden
Use.hidden to completely hide an element from the page. The element is removed from the document flow and takes up no space.
Common Use Cases
- Conditionally showing/hiding content
- Mobile menu toggles
- Progressive disclosure patterns
Display Examples
Navigation Bar
Card Grid
Centered Content
Best Practices
1
Choose the Right Display
Use
.block for full-width elements, .flex for layouts, and
.inline-block for inline elements that need dimensions.2
Combine with Other Utilities
Display utilities work best when combined with spacing, sizing, and
alignment utilities.
3
Use Flexbox for Layouts
Prefer
.flex over floats or positioning for modern layouts. It’s more
predictable and easier to maintain.4
Consider Accessibility
Be mindful of how display changes affect screen readers and keyboard
navigation.

