Display
Utilities for controlling the display box type of an element
Class reference
Block
Use .block
to create a block-level element.
Flow-Root
Use .flow-root
to create a block-level element with its own block formatting context.
Inline Block
Use .inline-block
to create an inline block-level element.
Inline
Use .inline
to create an inline element.
Flex
Use .flex
to create a block-level flex container.
Inline flex
Use .inline-flex
to create an inline flex container.
Grid
Use .grid
to create a grid container.
Inline Grid
Use .inline-grid
to create an inline grid container.
Contents
Use contents
to create a “phantom” container whose children act like direct children of the parent…
Table
Use the .table
, .table-row
, .table-cell
, .table-caption
, .table-column
, .table-column-group
, .table-header-group
, table-row-group
, and .table-footer-group
utilities to create elements that behave like their respective table elements.
Hidden
Use .hidden
to set an element to display: none
and remove it from the page layout (compare with .invisible
from the visibility documentation).
Responsive
To control the display property of an element at a specific breakpoint, add a {screen}:
prefix to any existing display utility class. For example, use md:inline-flex
to apply the inline-flex
utility at only medium screen sizes and above.
<div class="flex md:inline-flex ...">
<!-- ... -->
</div>
For more information about Elements’ responsive design features, check out the Responsive Design documentation.
On this Page
v1.13.5