Display
Utilities for controlling the display box type of an element.
Class | Properties |
---|---|
.d-block | display: block; |
.d-inline-block | display: inline-block; |
.d-inline | display: inline; |
.d-flex | display: flex; |
.d-inline-flex | display: inline-flex; |
.d-table | display: table; |
.d-table-row | display: table-row; |
.d-table-cell | display: table-cell; |
.d-none | display: none; |
Block
Use .d-block
to create a block-level element.
Inline Block
Use .d-inline-block
to create an inline block-level element.
Inline
Use .d-inline
to create an inline element.
Flex
Use .d-flex
to create a block-level flex container.
Inline Flex
Use .d-inline-flex
to create an inline flex container.
Table
Use the .table
, .table-row
, and .table-cell
to create elements that behave like a table or td element, respectively.
None
Use .d-none
to set an element to display: none
and remove it from the page layout.
Responsive
To control the display property at a specific breakpoint, add @{breakpoint} the end of the utility.
Variants
By default, only responsive variants are generated for this utility. You can control which variants are generated by modifying the $utility-configuration
in _settings.scss.