Layouts

Display

Utilities for sets the display box type of an element.


Variant

Active Checked Child-Selection Dark Mode Disabled Expand First-Last-Selection First-Letter Focus Focus-Visible Focus-Within Fullscreen Group-Focus Group-Hover Hover Landscape Light Mode Portrait Reduce-Motion Responsive Selection-Hover Visited

API

classcss
blockdisplay: block
hiddendisplay: none
inlinedisplay: inline
inline-blockdisplay: inline-block
flexdisplay: flex
inline-flexdisplay: inline-flex
classcss
tabledisplay: table
table-captiondisplay: table-caption
table-celldisplay: table-cell
table-rowdisplay: table-row
table-row-(group)display: table-row-(group)
table-columndisplay: table-column
table-column-(group)display: table-column-(group)
table-header-(group)display: table-header-(group)
table-footer-(group)display: table-footer-(group)

Usage

Set a block element that starts on a new line and takes up the full width.

1 2 3
<div class="block">
...
</div>
HTML
.dummy {
@extend
.block;
}
SCSS

Set the completely removed element.

1 3
<div class="hidden">
...
</div>
HTML
.dummy {
@extend
.hidden;
}
SCSS

Set an element as an inline. Any height and width properties will have no effect.

1
2
3
<div class="inline-block">
...
</div>
HTML
.dummy {
@extend
.inline-block;
}
SCSS

Set an element as a block-level flex container.

1
2
3
<div class="flex">
<div>...</div>
<div>...</div>
<div>...</div>
</div>
HTML
.dummy {
@extend
.flex;
}
SCSS

Set an element as an inline-level flex container.

1
2
3
<div class="inline-flex">
<div>...</div>
<div>...</div>
<div>...</div>
</div>
HTML
.dummy {
@extend
.inline-flex;
}
SCSS

Set a complete set of table with table, table-row, table-cell, table-caption, table-column, table-column-group, table-header-group, table-row-group, and table-footer-group utilities.

Row-1 Cell-1
Row-1 Cell-2
Row-2 Cell-1
Row-2 Cell-2
<div class="table width-full">
<div class="table-row-group">
<div class="table-row">
<div class="table-cell">
...
</div>
<div class="table-cell">
...
</div>
</div>
<div class="table-row">
<div class="table-cell">
...
</div>
<div class="table-cell">
...
</div>
</div>
</div>
</div>
HTML
.dummy-table {
@extend
.table,
.width-full;
}
.dummy-table-group {
@extend
.table-row-group;
}
.dummy-table-row {
@extend
.table-row;
}
.dummy-table-cell {
@extend
.table-cell;
}
SCSS