Class | Properties |
.block | display: block; |
.inline-block | display: inline-block; |
.inline | display: inline; |
.flex | display: flex; |
.inline-flex | display: inline-flex; |
.table | display: table; |
.table-row | display: table-row; |
.table-cell | display: table-cell; |
.hidden | display: none; |
Usage
Use .block
to create a block-level element.
Use .inline-block
to create an inline block-level element.
Use .inline
to create an inline element.
Use .flex
to create a block-level flex container.
Use .inline-flex
to create an inline flex container.
Tables
Use the .table
, .table-row
, and .table-cell
to create elements that behave like a <table>
, <tr>
, or <td>
element, respectively.
Hidden
Use .hidden
to set an element to display: none and remove it from the page layout (compare with .invisible
).
Variants
By default, only responsive variants are generated for display utilities.
Responsive
To control the display behavior of an element at a specific breakpoint, add a {screen}:
prefix to any existing display utility.
For example, use .md:block
to apply the block
utility at only medium screen sizes and above.
Hover-state
To include hover-state variants like .hover:block
, add "display"
to the $hover-variants
variable when recompiling your CSS:
$hover-variants: (
// ...
"display",
);